Difference between revisions of "Template:Anchor"
Masked Turk (talk | contribs) (Created page with "<span id="{{{2|{{{1}}}}}}">{{{1}}}</span>") |
Masked Turk (talk | contribs) m |
||
Line 1: | Line 1: | ||
− | <span id="{{{2|{{{1}}}}}}">{{{1}}}</span> | + | <includeonly><span id="{{{2|{{{1}}}}}}">{{{1}}}</span></includeonly><noinclude> |
+ | ==Usage== | ||
+ | This template allows you to link back to specific page objects with ''anchors''; that is, by linking <nowiki>[[Article#anchor]]</nowiki> or <nowiki>http://pcgamingwiki.com/wiki/Article#anchor</nowiki>. The browser page will scroll down so that the 'anchor' is in view. | ||
+ | |||
+ | This is done by placing the word or image (or pretty much anything else) inside the <nowiki>{{Anchor}}</nowiki> template. | ||
+ | * <nowiki>{{Anchor|Cheese}}</nowiki> | ||
+ | |||
+ | In the case of a sentence or image, add a second variable that can be used to identify the anchor. In the case below, you would link to <nowiki>[[Article#sentence1]]</nowiki> | ||
+ | * <nowiki>{{Anchor|A random sentence...|sentence1}}</nowiki> | ||
+ | </noinclude> |
Latest revision as of 16:57, 26 April 2012
Usage
This template allows you to link back to specific page objects with anchors; that is, by linking [[Article#anchor]] or http://pcgamingwiki.com/wiki/Article#anchor. The browser page will scroll down so that the 'anchor' is in view.
This is done by placing the word or image (or pretty much anything else) inside the {{Anchor}} template.
- {{Anchor|Cheese}}
In the case of a sentence or image, add a second variable that can be used to identify the anchor. In the case below, you would link to [[Article#sentence1]]
- {{Anchor|A random sentence...|sentence1}}