Mr. Johnson (talk | contribs) No edit summary |
Mr. Johnson (talk | contribs) mNo edit summary |
||
Line 7: | Line 7: | ||
==Returns== | ==Returns== | ||
Using something like {{Code|<nowiki>{{Anchor|Magic}}</nowiki>}} on [[Character Actor]] would returns the text, and allows a URL like {{Code|<nowiki>http://http://sr5-foundry.privateworks.com/index.php/Character_Actor_Sheet#Magic_Tab</nowiki>}} or a wiki reference to {{Code|<nowiki>[[Character Actor #Magic Tab]]</nowiki>}} to link directly to that section of the text: {{Return|[[Character Actor#Magic Tab]]}} | Using something like {{Code|<nowiki>{{Anchor|Magic}}</nowiki>}} on [[Character Actor]] would returns the text, and allows a URL like {{Code|<nowiki>http://http://sr5-foundry.privateworks.com/index.php/Character_Actor_Sheet#Magic_Tab</nowiki>}} or a wiki reference to {{Code|<nowiki>[[Character Actor#Magic Tab]]</nowiki>}} to link directly to that section of the text: {{Return|[[Character Actor#Magic Tab]]}} | ||
==Notes== | ==Notes== | ||
Headings automatically create their own anchors, e.g. {{Code|<nowiki>[[Character Actor Sheet#Magic Tab]]</nowiki>}} creates a link: {{Return|[[Character Actor#Magic Tab]]}} | Headings automatically create their own anchors, e.g. {{Code|<nowiki>[[Character Actor Sheet#Magic Tab]]</nowiki>}} creates a link: {{Return|[[Character Actor#Magic Tab]]}} |
Latest revision as of 13:22, 14 October 2024
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: