Template:Anchor/doc

From Angelina Jordan Wiki
Revision as of 18:59, 10 August 2022 by Dcljr (talk | contribs) (use {tc}, {tc-var}, and {wl})
This is a subpage documenting Template:Anchor. To change the template, edit that page; to change the template's documentation (seen below), edit this one.

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.

Usage

  • {{anchor|anchor name}}
  • {{anchor|anchor name|alternate displayed text}}
  • {{anchor|anchor name|}}

Examples

  • {{anchor|Anchor}}Anchor
  • {{anchor|Anchors|Aweigh}}Aweigh
  • {{anchor|Hidden|}}

These anchors can be targeted by links like [[Page Name#Anchor]], [[Page Name#Anchors]], and [[Page Name#Hidden]], respectively (or, if linking within the same page, just [[#Anchor]], etc.).

Aliases

  • {{a}}

See also

  • {{da}} – date anchor