Difference between revisions of "Template:Anchor"

From DAS Wiki
en>Plastikspork
(Fix |=FOO bug where {{anchor|=FOO}} transcludes Template:FOO)
 
en>Baris6161TURK
(Moving TemplateData to the /doc page.)
Line 1: Line 1:
{{<includeonly>safesubst:</includeonly>#invoke:anchor|main}}<noinclude>
+
<!--
{{Documentation}}
+
-->{{#if:{{{ 1|}}}|<span id="{{anchorencode:{{{ 1|}}}}}"></span><!--
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
+
-->{{#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>
 +
{{Documentation|content=
 +
{{high-use|5000}}
 +
== Usage ==
 +
See [[w:Template:Anchor]] for documentation.
 +
 
 +
This version of the anchor template cannot be substituted. To insert an anchor without the template, use <code><nowiki><span id="Anchor name"></span></nowiki></code>.
 +
== TemplateData ==
 +
{{Anchor/doc}}
 +
 
 +
[[Category:Templates{{#translation:}}]]
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 12:11, February 28, 2021

Template documentation

Usage

See w:Template:Anchor for documentation.

This version of the anchor template cannot be substituted. To insert an anchor without the template, use <span id="Anchor name"></span>.

TemplateData

Template:Anchor/doc

[[Category:Templates{{#translation:}}]]