Template:Anchor
Jump to navigation
Jump to search
Template documentation
This documentation is transcluded from Template:Anchor/doc. [edit] [history] [purge]
This template manually adds an HTML anchor to a page at the location of its invocation.
Keep in mind that anchors are inserted by default at all the headings in a page. So this template is only useful if you either:
- Want an anchor with a different name than a header. Useful for shortcuts.
- Want an anchor at some place other than a header.
The template should always be substituted when it is used inside a heading, otherwise it will display in the edit summary every time that section is edited.
Usage
{{anchor|foo}}
For use inside section headings:
==Example heading {{subst:anchor|foo}}==
which will result in
==Example heading <span class="anchor" id="foo"></span>==
See also
Template data
Show/hide template's data |
---|