Template:Anchor: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
(linking to specific revision where they changed it)
mNo edit summary
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span id="{{{1}}}">{{{2|}}}</span><noinclude>
<span id="{{{1|}}}">{{{2|}}}</span><noinclude>
==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).


==Usage==
The first parameter is the anchor name. An optional second parameter can be used to add visible text to the page.
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.


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 <nowiki><span></nowiki> tags.
==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>

Revision as of 12: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.