Template documentation
Note: portions of the template sample may not be visible without values provided.

{{Anchor}} creates an anchorpoint on a page with the text inserted. This can be used for direct links, in tandem with the {{DL}} template.

For example, because the anchor template is used on the Pokémon Storage System page, linking to Pokémon Storage System#Battle Box results in the section itself being linked to (even though it is named Battle Box and Battle Teams), rather than the top of the page. Note that since the Battle Box redirect redirects to that anchor, linking to it does the same.

Usage

{{ anchor | <anchor name> | <anchor text> }}

Template fields

  • 1: Anchor name - To be used when linking to this anchor point.
  • 2: Anchor text - Optional. Text displayed for the anchor point. Can be omitted.

TemplateData

Creates an anchorpoint on a page with the text inserted

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Anchor name1

To be used when linking to this anchor point

Linerequired
Anchor text2

Text displayed for the anchor point

Lineoptional

Examples

{{Anchor|Here}}

 

{{Anchor|There|To this text}}

To this text

{{DL||Here}}

Here

{{DL||There}}

There

Additional notes

Instead of using {{anchor}} to create anchor points, they can be applied to other html elements like tables or divs directly. This section lists a few examples.

Tables

Instead of

Cell 1
{| style="border: 2px solid gray; background: cyan; float:right"
|-
| {{anchor|Cell1|Cell 1}}
|}
{{DL||Cell1|To Cell 1}}

To Cell 1

use:

Row 1
{| style="border: 2px solid gray; background: cyan; float:right"
|- id="Row1"
| Row 1
|}
{{DL||Row1|To Row 1}}

To Row 1

Other Elements

Instead of

Div 1
<div style="border: 2px solid gray; background: green; color: white; float:right">{{anchor|Div1|Div 1}}</div>

To Div 1

use:

Div 2
<div id="Div2" style="border: 2px solid gray; background: green; color: white; float:right">Div 2</div>

To Div 2