Search results
Results from the WOW.Com Content Network
Anchor names must be unique on a page, and must not duplicate any heading titles. Duplicate anchors will not work as expected since the #location links go to the first anchor with that name. Duplicate anchors result in invalid HTML; you can check for duplicate anchors by running the page through the W3C Markup Validation Service.
Link to an anchor in the same article using just the anchor name, e.g. [[#Anchor name]]. (In the Visual Editor, type #Anchor name into the link field.) From a different article, link to an anchor by specifying the article name, followed by a #, then the anchor name. e.g. [[Article name#Anchor name]]. The # will be visible in the link text.
The template {{Visible anchor}} inserts one or more HTML anchors in a page. Those locations can then be linked to using [[#link|...]] syntax. Unlike {{Anchor}}, the first parameter will be visible text on the page. Template parameters Parameter Description Type Status Anchor name, and text to display 1 This will become an anchor. The characters ", #, | and = must be escaped; see the main ...
The article ArticleName links here. --> so that if another user edits the title of that section, they can fix the incoming links (or, in cases where a section has a large number of incoming links, use {} on the anchor page). To link to a section within the same article, write: [[#Promotion to rook or bishop|§ promotion to a rook or bishop]].
The template {} inserts one or more invisible anchor names (HTML fragment identifiers) in a page. The basic format is {{subst:anchor|Anchor name}}. To link to an anchor from within the same page, use [[#Anchor name|display text]]. To link to an anchor from another page, use [[Article name#Anchor name|display text]].
[[Category:Section and anchor link formatting templates]] to the <includeonly> section at the bottom of that page. Otherwise, add <noinclude>[[Category:Section and anchor link formatting templates]]</noinclude> to the end of the template code, making sure it starts on the same line as the code's last character.
Auto anchor— the anchor is automatically built by concatenating (running together) template fields such as the author last names and the year (e.g. SmithJones1999) Custom anchor— the anchor is created from text defined in a field; Reference- anchor— the anchor consists of Reference- plus the defined text; Anchor types can be combined.
There is no need to include a blank line between a heading and sub-heading. When changing or removing a heading, consider adding an anchor template with the original heading name to provide for incoming external links and wikilinks (preferably using {{subst:anchor}} rather than using {{anchor}} directly—see MOS:RENAMESECTION).