Template:Anchor: Difference between revisions

From [N8]
Jump to navigation Jump to search
Zero (talk | contribs)
m Protected "Template:Anchor" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite))
m Replaced content with "<span id="{{{1}}}" class="wgl-anchor"></span><noinclude>{{AnchorText/doc}}</noinclude>"
Tag: Replaced
 
Line 1: Line 1:
<!--
<span id="{{{1}}}" class="wgl-anchor"></span><noinclude>{{AnchorText/doc}}</noinclude>
-->{{#if:{{{ 1|}}}|<span id="{{anchorencode:{{{ 1|}}}}}"></span><!--
-->{{#if:{{{ 2|}}}|<span id="{{anchorencode:{{{ 2|}}}}}"></span><!--
-->{{#if:{{{ 3|}}}|<span id="{{anchorencode:{{{ 3|}}}}}"></span><!--
-->{{#if:{{{ 4|}}}|<span id="{{anchorencode:{{{ 4|}}}}}"></span><!--
-->{{#if:{{{ 5|}}}|<span id="{{anchorencode:{{{ 5|}}}}}"></span><!--
-->{{#if:{{{ 6|}}}|<span id="{{anchorencode:{{{ 6|}}}}}"></span><!--
-->{{#if:{{{ 7|}}}|<span id="{{anchorencode:{{{ 7|}}}}}"></span><!--
-->{{#if:{{{ 8|}}}|<span id="{{anchorencode:{{{ 8|}}}}}"></span><!--
-->{{#if:{{{ 9|}}}|<span id="{{anchorencode:{{{ 9|}}}}}"></span><!--
-->{{#if:{{{10|}}}|<span id="{{anchorencode:{{{10|}}}}}"></span><!--
-->{{#if:{{{11|}}}
    |<span class="error">[[Template:Anchor]] (or Anchors): too many anchors, maximum is ten</span><!--
-->}}<!--
-->}} }} }} }} }} }} }} }} }} }}<noinclude>
{{template doc}}
[[Category:Templates]]</noinclude>

Latest revision as of 07:59, 2 June 2020

Template documentation
This documentation is transcluded from Template:Anchor/doc. [edit] [purge]

The templates {{Anchor}} and {{AnchorText}} create anchors on a page. These can be used as the target for links in the format [[Page name#Anchor code]]. They are used as follows:

Code Visible result Link with
{{Anchor|ref}} none #ref
{{Anchor text|text}} text #text
{{Anchor text|ref|text}} text #ref
{{AnchorText|Text}}