Template:Anchor View history

imported>Kentsmith9
(Cap change)
imported>Kentsmith9
(Moved documentation to separate page)
Line 1: Line 1:
<noinclude>'''Documentation:''' This template creates a point on a page that can be linked from other pages. Place the following example code on a page in the spot to which you need to link:
<span id="{{{1|}}}"></span><noinclude>{{doc}}</noinclude>
 
'''<nowiki>{{</nowiki>Anchor|Name for the link on the page<nowiki>}}</nowiki>'''
 
Then from another page you can enter the code:
 
'''<nowiki>[[</nowiki>PageNameWithNewAnchor#Name for the link on the page<nowiki>]]</nowiki>'''
 
or if it is on the current page you can alternately use:
 
'''<nowiki>[[</nowiki>#Name for the link on the page<nowiki>]]</nowiki>'''
 
Note that both entries can also use the pipe (|) to display alternate text to the user instead of the actual link name.
 
{{TemplateNotDisplayed}}
 
</noinclude><span id="{{{1|}}}"></span>

Revision as of 20:31, 2 February 2014