Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Anchor"

From PCGamingWiki, the wiki about fixing PC games
(Created page with "<span id="{{{2|{{{1}}}}}}">{{{1}}}</span>")
 
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}}