This template uses Lua: |
This template is used in system messages, and on approximately 85,000 pages. Changes to it can cause immediate changes to the Wikipedia user interface. To avoid major disruption, any changes should be tested in the template's /sandbox or /testcases subpages, or in your own user subpage. The tested changes can be added to this page in a single edit. Please discuss changes on the talk page before implementing them. Preview message: Transclusion count updated automatically (see documentation). |
This template is used by one or more bots.
If you intend to change this template in any significant way, move it or nominate it for deletion, please inform the bot operators. Thank you. The relevant bots are: User:Cewbot (BRFA). |
This is a documentation subpage for Template:Anchor. It may contain usage information, categories and other content that is not part of the original template page. |
The template {{anchor}} inserts one or more invisible anchor names (HTML fragment identifiers) in a page.
The basic format is {{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]]
. See Help:Link § Section linking (anchors) for more details.
Note that #Anchor name
, used by the MediaWiki software to (usually) direct users to sections within a page, is not a wikitext directive like #redirect
.
Anchors are most useful with sections, since links to a section will not work if a section is renamed. However, anchors can be used as needed anywhere in an article. The anchor name can be arbitrary, but the first letter should generally be capitalized in keeping with header style (see Manual of Style § Section headings for more information).