Template:Anchor: Difference between revisions

Template page
(Created page with "<includeonly><!-- -->{{#vardefine:anchor|{{{1|}}}}}<!-- -->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|"|"}}<!-- -->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|'|&#3...")
 
(Undo revision 442264 by Wakeup720 (talk))
Tag: Undo
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
-->{{#vardefine:anchor|{{{1|}}}}}<!--
-->{{#vardefine:anchor|{{{1|}}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|"|&#34;}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|"|&#34;}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|'|&#39;}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|'|&#39;}}}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|&|&#38;}}<!--
-->{{#vardefine:anchor|{{#replace:{{#var:anchor}}|&|&#38;}}}}<!--
-->{{#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>

Latest revision as of 19:44, 17 January 2024

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