Template:Anchor/doc

The template anchor inserts one or more HTML fragment identifiers (anchor names) in a page. Those locations can then be linked to using  syntax.

Examples
1.
 * could be linked to with  …  from within the same article,
 * or it could be linked to with  …  from other articles and from redirects.

2. Anchors can be more suitable for inter-article linking than section titles are. For example:
 * Here, links via  Article name  would remain valid even if the section were renamed. Consider using wikipedia:anchor comment after the section title to generate a HTML comment alerting other editors to the purpose of anchors used in this manner. See Limitations for the editing problems this use introduces.
 * The following is an example of what not to do:
 * Here, the link  Article name  would take the user to the section, but could hide the section title from view.
 * Here, the link  Article name  would take the user to the section, but could hide the section title from view.
 * Here, the link  Article name  would take the user to the section, but could hide the section title from view.

Limitations
See wikipedia:Template:Anchor.