Template:Anchor: Difference between revisions

From SNESdev Wiki
Jump to navigationJump to search
m (place for documentation?)
("too many" category seems unnecessary)
 
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>{{Template:Anchor/doc}}</noinclude>
-->{{#if:{{{11|}}}|<span class="error">[[Template:Anchor]]: Too many anchors; maximum is 10.</span>}}<noinclude>{{Template:Anchor/doc}}</noinclude>

Latest revision as of 22:57, 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]]