Template:Anchor/doc: Difference between revisions

From SNESdev Wiki
Jump to navigationJump to search
(explain template)
 
m (formatting)
Line 3: Line 3:
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>

Revision as of 00:36, 16 May 2022

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]]