Template:Anc
Anchors (also known as named anchors) are elements on a page that create a place to link to, outside of MediaWiki's section anchors. This template creates a span with an ID that you specify, which must be lowercase so it doesn't interfere with MediaWiki's built-in heading/Table of Contents anchors, which use uppercase for the first letter.
Usage
Place one of the following on the page where you'd like to be able to link to directly:
{{anc|anchorname}}
- displays no text, just creates a hidden anchor.{{anc|anchorname|anchor text}}
- anchors to specific text.
Important notes:
- Spaces cannot be used in anchor names.
- Only these symbols can be used in an anchor name: hyphen
-
, underscore_
, colon:
, period.
If you used {{anc|anchorname|anchor text}}
on a page, you could link to it with [[Pagename#anchorname]]
to cause the link to jump to the anchor.
[view | edit | purge]The above documentation is transcluded from Template:Anc/doc.