Difference between revisions of "Template:Anchor"
From StarMade Wiki
DukeofRealms (talk | contribs) m (1 revision) |
DukeofRealms (talk | contribs) m (1 version) |
(No difference)
|
Revision as of 06:41, 21 May 2015
Creates an anchor that can be linked to just as a standard anchor, as follows (non-exclusive list):
Contents
Parameters
- All parameters: Creates an anchor with the specified name
- Multiple parameters creates multiple anchors.
Usage
Creation
Pass the required anchor as the only argument to the template:
{{Anchor|anchorname}}
Link to it as shown below.
This template can create a technically unlimited number of anchors within the one template, so this code is valid and will create multiple anchors in the same location.
{{Anchor|anchorname|anchor2|anchor3}}
Linking to
From within the page that the anchor is on:
[[#anchorname]]
From outside that page, but still on the wiki:
[[Pagename#anchorname]]
From outside the wiki:
[http://starmadepedia.net/wiki/Pagename#anchorname click here]
The above documentation is transcluded from Template:Anchor/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories and interwikis to the /doc subpage. Subpages of this template. |