Template:Anchor: Difference between revisions
From SNESdev Wiki
Jump to navigationJump to search
Rainwarrior (talk | contribs) (anchor template) |
Rainwarrior (talk | contribs) m (place for documentation?) |
||
Line 9: | Line 9: | ||
-->{{#if:{{{9|}}}|<ins id="{{{9|}}}"></ins>}}<!-- | -->{{#if:{{{9|}}}|<ins id="{{{9|}}}"></ins>}}<!-- | ||
-->{{#if:{{{10|}}}|<ins id="{{{10|}}}"></ins>}}<!-- | -->{{#if:{{{10|}}}|<ins id="{{{10|}}}"></ins>}}<!-- | ||
-->{{#if:{{{11|}}}|<span class="error">[[Template:Anchor]]: Too many anchors; maximum is 10.</span>[[Category:Template:Anchor/too many anchors]]}}<noinclude>{{ | -->{{#if:{{{11|}}}|<span class="error">[[Template:Anchor]]: Too many anchors; maximum is 10.</span>[[Category:Template:Anchor/too many anchors]]}}<noinclude>{{Template:Anchor/doc}}</noinclude> |
Revision as of 00:23, 16 May 2022
This documentation is at: Template:Anchor/doc |
This template manually adds one or more HTML anchors, allowing links to locations other than section headings.
Usage can create a single named anchor, or many at the same location:
{{Anchor|name1}}
{{Anchor|name1|name2|name3...}}
Linking can be used within the same page, or in cross-page links:
[[#name1|name1]]
[[Pagename#name1|name1]]