Template:Anchor: Difference between revisions
Jump to navigation
Jump to search
(take out all #if statements as ParserFunctions is not installed. Add documentation) |
|||
Line 1: | Line 1: | ||
<span id="{{{1}}}"></span><noinclude> | |||
==Usage== | |||
This template creates an anchor. It is useful for maintaining a link to a section where the section title has changed or may be changed in future. | |||
Normally, link to a section by including # between the page name and the section name, so this section right here is: | |||
:[[Template:Anchor#Usage]] | |||
If "Usage" might be changed to something else, insert an anchor like | |||
<code><nowiki>{{anchor|Usage}}</nowiki></code> | |||
Then another page linking to #Usage here will still go to that anchor on the page, even if the section name changes. | |||
[[Category:Templates|Anchor]] | |||
</noinclude> |
Revision as of 23:10, 23 February 2011
Usage
This template creates an anchor. It is useful for maintaining a link to a section where the section title has changed or may be changed in future.
Normally, link to a section by including # between the page name and the section name, so this section right here is:
If "Usage" might be changed to something else, insert an anchor like
{{anchor|Usage}}
Then another page linking to #Usage here will still go to that anchor on the page, even if the section name changes.