Template:Anchor View history

imported>Kentsmith9
(Cap change)
imported>Wottem
m (1 revision imported)
 
(5 intermediate revisions by 2 users not shown)
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:
{{#if:{{{1|}}}|<span id="{{{1|}}}"></span>}}<!--
 
-->{{#if:{{{2|}}}|<span id="{{{2|}}}"></span>}}<!--
'''<nowiki>{{</nowiki>Anchor|Name for the link on the page<nowiki>}}</nowiki>'''
-->{{#if:{{{3|}}}|<span id="{{{3|}}}"></span>}}<!--
 
-->{{#if:{{{4|}}}|<span id="{{{4|}}}"></span>}}<!--
Then from another page you can enter the code:
-->{{#if:{{{5|}}}|<span id="{{{5|}}}"></span>}}<!--
 
-->{{#if:{{{6|}}}|<span id="{{{6|}}}"></span>}}<!--
'''<nowiki>[[</nowiki>PageNameWithNewAnchor#Name for the link on the page<nowiki>]]</nowiki>'''
-->{{#if:{{{7|}}}|<span id="{{{7|}}}"></span>}}<!--
 
-->{{#if:{{{8|}}}|<span id="{{{8|}}}"></span>}}<!--
or if it is on the current page you can alternately use:
-->{{#if:{{{9|}}}|<span id="{{{9|}}}"></span>}}<!--
 
-->{{#if:{{{10|}}}|<span id="{{{10|}}}"></span>}}<!--
'''<nowiki>[[</nowiki>#Name for the link on the page<nowiki>]]</nowiki>'''
-->{{#if:{{{11|}}}|<span class="error">Error in [[Template:Anchor]]: too many anchors, maximum is 10.</span>}}<noinclude>{{doc}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS -->
Note that both entries can also use the pipe (|) to display alternate text to the user instead of the actual link name.
</noinclude>
 
{{TemplateNotDisplayed}}
 
</noinclude><span id="{{{1|}}}"></span>

Latest revision as of 23:48, 2 July 2022