Anonymous
×
Create a new article
Write your page title here:
We currently have 55 articles on SR5 Foundry VTT System Wiki. Type your article name above or click on one of the titles below and start writing!



SR5 Foundry VTT System Wiki

Template:Anchor: Difference between revisions

No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Documentation}}
{{Documentation}}
<includeonly><onlyinclude><span id="{{{1}}}" style="font-family: inherit; font-color: var(--red) !important; font-weight: bold;">{{{1}}}</span></onlyinclude></includeonly>
<includeonly><onlyinclude><span id="{{{1}}}" style="font-family: inherit; font-weight: bold; color: var(--red);">{{{1|{{Required|1|Anchor}}}}}{{{2|}}}</span></onlyinclude></includeonly>

Latest revision as of 15:54, 27 December 2023

Template:Anchor

Template:Anchor is used to create HTML and wikitext anchors via span IDs.

Usage

It accepts one mandatory string parameter, the reference text.

It also accepts one optional string parameter, which is appended to the supplied text but not part of the anchor. Typically, s is used to pluralize a word without pluralizing the anchor ID.

Returns

Using something like {{Anchor|Magic}} on Character Actor would returns the text, and allows a URL like http://http://sr5-foundry.privateworks.com/index.php/Character_Actor_Sheet#Magic_Tab or a wiki reference to [[Character Actor#Magic Tab]] to link directly to that section of the text:

Notes

Headings automatically create their own anchors, e.g. [[Character Actor Sheet#Magic Tab]] creates a link:

The documentation above was transcluded from Template:Anchor/Documentation.