Documentation subpage
View this documentation's related template:
Template:Anchor (edit).
Template styles: CSS styles (edit).

Example(s)

edit
  • {{anchor|variables|page=Controlling output format}} gives:

variables

  • {{anchor|variables|use some Variables|page=Controlling output format}} gives:

use some Variables

See Also

edit
  • {{Anc}}, the partner template to this one, used to set (and auto-format) named anchors.

Template Data

edit

Links to an HTML anchor (named anchor) as set by the {Anc} template, which automatically pre-formats the anchor, forcing lowercase and replacing spaces with dashes.

Template parameters

ParameterDescriptionTypeStatus
11

Enter the name for the anchor, omitting any special characters as documented in the {anc} template. Note that spaces are auto-replaced by dashes, and lowercase is forced, only for the link itself.

Stringoptional
22

Enter any text to override the display text, which overrides the link (display) text only.

Stringoptional
pagepage

If the anc (anchor using the {anc} template) isn't located on the same page, specify the page (including namespaces).

Page nameoptional