Template:Anchor
Documentation
This template creates an "anchor" at the current location that can serve as a target for incoming links, or for links within the same page (like section headings do). Note that the name of the anchor is shown to the viewer; if you don't want that, use an empty final positional parameter, as shown in the examples below, or use {{ha}} instead.
Usage
{{anchor|anchor name}}{{anchor|anchor name|alternate displayed text}}{{anchor|anchor name|}}{{anchor|anchor name|link=char}}{{anchor|anchor name|link name|link=char}}
Examples
{{anchor|Anchor}}⇒ Anchor{{anchor|Anchors|Aweigh}}⇒ Aweigh{{anchor|Hidden|}}⇒{{anchor|Title|link=y}}⇒ Title{{anchor|One|Two|link=y}}⇒ Two
These anchors can be targeted by links like [[Page Name#Anchor]], [[Page Name#Anchors]], [[Page Name#Hidden]], [[Page Name#Title]], and [[Page Name#One]], respectively (or, if linking within the same page, just [[#Anchor]], etc.). Note that [[Page Name#Aweigh]] and [[Page Name#Two]] will not work, since "Aweigh" and "Two" are not the name of the anchors in those examples.
The last two forms provide outgoing wikilinks. Note that the target page title in the last example matches the second input (Two), not the first; this is just like the behavior of piped links.
Aliases
{{a}}