Template:Anchor: Difference between revisions

Template page
No edit summary
No edit summary
Line 6: Line 6:
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|<|&#60;}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|<|&#60;}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|>|&#62;}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|>|&#62;}}}}<!--
--><span id={{#var:anchor}}></includeonly>
--><span id="{{#var:anchor}}"/></includeonly>
<noinclude>{{clear}}{{doc}}</noinclude>
<noinclude>{{clear}}{{doc}}</noinclude>

Revision as of 00:24, 14 November 2022

Purpose

Used to create page anchors anywhere, automatically cleans Reserved HTML characters. Page anchors are URL additions that scroll the page to take the user directly to a given element.

Example

{{Anchor|Zato Picture}}
[[File:GGST_Zato-1_2P.png|200px]]
https://www.dustloop.com/w/Template:Anchor/doc#Zato_Picture

GGST Zato-1 2P.png https://www.dustloop.com/w/Template:Anchor/doc#Zato_Picture