Template:Anchor: Difference between revisions

From Bulbapedia, the community-driven Pokémon encyclopedia.
Jump to navigationJump to search
(Update example to reflect Hidden Ability split)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span id="{{{1}}}"></span><noinclude>[[Category:Code templates]]
<span id="{{{1}}}">{{{2|}}}</span><noinclude>[[Category:Code templates]]


This template anchors a section link to a specific part of a page.
This template anchors a section link to a specific part of a page.


For example, because the anchor template is used on the [[type-enhancing item]] page, linking to [[Type-enhancing item#NeverMeltIce]] results in the item itself being linked to, rather than the top of the page. Note that since the [[NeverMeltIce]] redirect redirects to that anchor, linking to it does the same.
For example, because the anchor template is used on the [[Pokémon Storage System]] page, linking to [[Pokémon Storage System#Battle Box]] results in the section itself being linked to (even though it is named '''Battle Box and Battle Teams'''), rather than the top of the page. Note that since the [[Battle Box]] redirect redirects to that anchor, linking to it does the same.
</noinclude>
</noinclude>

Latest revision as of 16:01, 26 August 2023

This template anchors a section link to a specific part of a page.

For example, because the anchor template is used on the Pokémon Storage System page, linking to Pokémon Storage System#Battle Box results in the section itself being linked to (even though it is named Battle Box and Battle Teams), rather than the top of the page. Note that since the Battle Box redirect redirects to that anchor, linking to it does the same.