Template:Anchor: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Changed protection settings for "Template:Anchor" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
mNo edit summary
 
Line 1: Line 1:
<span id="{{{1|}}}">{{{2|}}}</span><noinclude>
<span id="{{{1|}}}">{{{2|}}}</span><noinclude>
==Usage==
==Usage==
This template is used to anchor a section link in specific parts of pages, mostly in table entries with large amounts of links to the table.
This template adds an invisible HTML anchor to the page, which allows that specific spot to be linked to (like a section but without a section heading).


The original template was derived from an [https://en.wikipedia.org/w/index.php?title=Template:Anchor&oldid=137417693 older revision] on Wikipedia, which in turn was [https://bulbapedia.bulbagarden.net/w/index.php?title=Template:Anchor&diff=next&oldid=975929 reused] by [[bulbapedia:Template:Anchor|Bulbapedia]], but with an added <code><nowiki>{{{2|}}}</nowiki></code> between the <code><nowiki><span></nowiki></code> tags.
The first parameter is the anchor name. An optional second parameter can be used to add visible text to the page.
 
==Example==
<code><nowiki>{{anchor|Ignore}}</nowiki></code> on [[MarioWiki:Courtesy]] enables the [[MarioWiki:Courtesy#Ignore]] link to function.


[[Category:Formatting templates]]</noinclude>
[[Category:Formatting templates]]</noinclude>

Latest revision as of 11:59, December 14, 2024

Usage

This template adds an invisible HTML anchor to the page, which allows that specific spot to be linked to (like a section but without a section heading).

The first parameter is the anchor name. An optional second parameter can be used to add visible text to the page.

Example

{{anchor|Ignore}} on MarioWiki:Courtesy enables the MarioWiki:Courtesy#Ignore link to function.