Template:Anchor/doc

From StarMade Wiki

< Template:Anchor

Revision as of 16:01, 8 July 2016 by DukeofRealms (talk | contribs) (2 revisions imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Creates an anchor that can be linked to just as a standard anchor, as follows (non-exclusive list):

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]