模板:Anchor/doc/cs
| 文件:Codex icon book color-base.svg | This is a documentation subpage for 模板:Anchor/doc. It contains usage information, categories and other content that is not part of the original 模板 page. |
| Lua标志 | 使用Lua |
| 文件:OOjs UI icon alert-warning.svg | This template is used on approximately 5,000 pages. To avoid large-scale disruption and unnecessary server load, any changes to this template should first be tested in its /sandbox or /testcases subpages or in your own user subpage. The tested changes can then be added to this page in one single edit. Please consider discussing any changes on the talk page before implementing them. |
Podívejte se na stránku w:Template:Anchor.
Použití
Pro vložení kotvy bez šablony použijte <span id="anchor name"></span>.
TemplateData
Tato sekce obsahuje strukturovaný popis parametrů šablony využívající rozšíření TemplateData, který umožňuje snadnější používání této šablony v prostředí VisualEditoru.
Anchor/doc
Define link target(s) to a section or element within current page
| 参数 | 描述 | 类型 | 状态 | |
|---|---|---|---|---|
| First anchor | 1 | First anchor ID. | 字符串 | 必需 |
| Second anchor | 2 | Second anchor ID. | 字符串 | 可选 |
| Third anchor | 3 | Third anchor ID. | 字符串 | 可选 |
| Fourth anchor | 4 | Fourth anchor ID. | 字符串 | 可选 |
| Fifth anchor | 5 | Fifth anchor ID. | 字符串 | 可选 |
| Sixth anchor | 6 | Sixth anchor ID. | 字符串 | 可选 |
| Seventh anchor | 7 | Seventh anchor ID. | 字符串 | 可选 |
| Eighth anchor | 8 | Eighth anchor ID. | 字符串 | 可选 |
| Ninenth anchor | 9 | Ninenth anchor ID. | 字符串 | 可选 |
| Tenth anchor | 10 | Tenth anchor ID. | 字符串 | 可选 |
| Eleventh anchor | 11 | It gives an error when you are trying to add eleventh anchor. | 字符串 | 可选 |