Template:Anchor: Difference between revisions
From The Goon Show Depository
en>Plastikspork (Fix |=FOO bug where {{anchor|=FOO}} transcludes Template:FOO) |
m (1 revision imported) |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{< | <onlyinclude><!-- | ||
-->{{#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><!-- | |||
-->}}<!-- | |||
-->}} }} }} }} }} }} }} }} }} }}</onlyinclude> | |||
{{Documentation}} | {{Documentation}} | ||
Latest revision as of 10:48, 20 July 2022
Error: no modules specified |
This template is used on approximately 73,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
See w:Template:Anchor for documentation.
Usage
This version of the anchor template cannot be substituted. To insert an anchor without the template, use <span id="anchor name"></span>
.
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Anchor in articles based on its TemplateData.
TemplateData for Anchor
Define link target(s) to a section or element within current page
Parameter | Description | Type | Status | |
---|---|---|---|---|
First anchor | 1 | First anchor ID. | String | required |
Second anchor | 2 | Second anchor ID. | String | optional |
Third anchor | 3 | Third anchor ID. | String | optional |
Fourth anchor | 4 | Fourth anchor ID. | String | optional |
Fifth anchor | 5 | Fifth anchor ID. | String | optional |
Sixth anchor | 6 | Sixth anchor ID. | String | optional |
Seventh anchor | 7 | Seventh anchor ID. | String | optional |
Eighth anchor | 8 | Eighth anchor ID. | String | optional |
Ninenth anchor | 9 | Ninenth anchor ID. | String | optional |
Tenth anchor | 10 | Tenth anchor ID. | String | optional |
Eleventh anchor | 11 | It gives an error when you are trying to add eleventh anchor. | String | optional |
[[Category:Templates{{#translation:}}]]