Template:Anchor
From Wikimedia Commons, the free media repository
[edit] Usage
Inserts a HTML anchor in a page at the location of its invocation, enabling direct #Links to this location.
- Code
- <span id="{{{anchor|{{{1|anchor}}}}}}" />
- Usage
- {{anchor|anchor_name}}
- {{anchor|1=anchor_name}}
- {{anchor|anchor=anchor_name}}
[edit] Example
====Usage {{anchor|Example anchor}}====
or
====Usage {{anchor|anchor=Example anchor}}====
Template:Anchor#Example anchor (from another page) or #Example anchor (from this page) will now link to the section called "Usage", as seen above.