Template:Anchor/doc: Difference between revisions

From SNESdev Wiki
Jump to navigationJump to search
(explain template)
 
m (explain doc location for easier editing)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{| class="wikitable"
| This documentation is at: [[Template:Anchor/doc]]
|}
This template manually adds one or more HTML anchors, allowing links to locations other than section headings.
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:
Usage can create a single named anchor, or many at the same location:


<nowiki>
<code><nowiki>
  {{Anchor|name1}}
  {{Anchor|name1}}
</nowiki></code>
<code><nowiki>
  {{Anchor|name1|name2|name3...}}
  {{Anchor|name1|name2|name3...}}
</nowiki>
</nowiki></code>


Linking can be used within the same page, or in cross-page links:
Linking can be used within the same page, or in cross-page links:


<nowiki>
<code><nowiki>
  [[#name1|name1]]
  [[#name1|name1]]
</nowiki></code>
<code><nowiki>
  [[Pagename#name1|name1]]
  [[Pagename#name1|name1]]
</nowiki>
</nowiki></code>

Latest revision as of 00:39, 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]]