Anonymous
×
Create a new article
Write your page title here:
We currently have 205 articles on Shadowrun Seattle Shutdown. Type your article name above or click on one of the titles below and start writing!



Shadowrun Seattle Shutdown

Template:Anchor/Documentation: Difference between revisions

No edit summary
No edit summary
Line 12: Line 12:


==Notes==
==Notes==
Headings automatically create their own anchors, e.g. {{Code|<nowiki>[[SCIRE#Basement_Levels]]</nowiki>}} creates a link: {{Return|[[SCIRE#Basement_Levels]]}}.
Headings automatically create their own anchors, e.g. {{Code|<nowiki>[[SCIRE#Basement_Levels]]</nowiki>}} creates a link: {{Return|[[SCIRE#Basement_Levels]]}}

Revision as of 16:29, 3 May 2023

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

Usage

It accepts one mandatory string parameter, the reference text.

It accepts one optional parameter, display. If set to any value, it hides the reference text, but the anchor is still created.

Returns

{{Anchor|B21}} on SCIRE returns the text, and allows a URL like http://wiki.s3.privateworks.com/index.php/SCIRE#B21 or a wiki reference to [[SCIRE#B21]] to link directly to that section of the text:

There is no good example for display, as it's specific function is to hide the text while still creating the anchor.

Notes

Headings automatically create their own anchors, e.g. [[SCIRE#Basement_Levels]] creates a link: