(Created page with "<includeonly><!--Template Subcategories--></includeonly> {{Template|Anchor}} is used to create HTML anchors via span IDs. ==Usage== It accepts one {{Parameter|mandatory|string}}, the reference text. It accepts one {{Parameter|optional}}, {{Code|display}}. If set to any value, it hides the reference text, but the anchor is still created. ==Returns== {{Code|<nowiki>Anchors are often made of {{anchor|made of lead}}, due to it's density.</nowiki>}} returns: {{Return|Anchor...") |
No edit summary |
||
| Line 7: | Line 7: | ||
==Returns== | ==Returns== | ||
{{Code|<nowiki> | {{Code|<nowiki>{{Anchor|B21}}</nowiki>}} on [[SCIRE]] returns the text, and allows a URL like {{Code|<nowiki>http://wiki.s3.privateworks.com/index.php/SCIRE#B21</nowiki>}} or a wiki reference to {{Code|<nowiki>[[SCIRE#B21]]</nowiki>}} to link directly to that section of the text: {{Return|[[SCIRE#B21]]}} | ||
Revision as of 16:25, 3 May 2023
Template:Anchor is used to create HTML 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:
