Template:Anchor: Difference between revisions
From VRChat Wiki
(Create template) |
m (Add note about section headings already being an anchor) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude> | <onlyinclude><span id="{{{1}}}"></span>{{#if: {{{2|}}}|<span id="{{{2}}}"></span>|}}{{#if: {{{3|}}}|<span id="{{{3}}}"></span>|}}{{#if: {{{4|}}}|<span id="{{{4}}}"></span>|}}{{#if: {{{5|}}}|<span id="{{{5}}}"></span>|}}{{#if: {{{6|}}}|<span id="{{{6}}}"></span>|}}{{#if: {{{7|}}}|<span id="{{{7}}}"></span>|}}{{#if: {{{8|}}}|<span id="{{{8}}}"></span>|}}{{#if: {{{9|}}}|<span id="{{{9}}}"></span>|}}{{#if: {{{10|}}}|<span id="{{{10}}}"></span>|}}</onlyinclude> | ||
<code><nowiki>{{anchor|name1|name2|name3| ... |name10}}</nowiki></code> | <code><nowiki>{{anchor|name1|name2|name3| ... |name10}}</nowiki></code> | ||
== About == | == About == | ||
Allows to create one or more (up to 10) anchors to a specific part of a page. | Allows to create one or more (up to 10) manual anchors to a specific part of a page. | ||
These can later be linked with regular <code><nowiki>[[page_name#anchor_name]]</nowiki></code>. | |||
(All headings are automatically an anchor and don't require one.) | |||
== Example usage == | == Example usage == | ||
{{anchor|some name}} | {{anchor|some name}} | ||
Line 19: | Line 20: | ||
[[Category:Templates]] | [[Category:Templates]] | ||
== TemplateData == | |||
<noinclude> | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Name 1", | |||
"required": true, | |||
"description": "First anchor name", | |||
"type": "string" | |||
}, | |||
"2": { | |||
"label": "Name 2", | |||
"description": "Second anchor name", | |||
"type": "string" | |||
}, | |||
"3": { | |||
"label": "Name 3", | |||
"description": "Third anchor name", | |||
"type": "string" | |||
}, | |||
"4": { | |||
"label": "Name 4", | |||
"description": "Fourth anchor name", | |||
"type": "string" | |||
}, | |||
"5": { | |||
"label": "Name 5", | |||
"description": "Fifth anchor name", | |||
"type": "string" | |||
}, | |||
"6": { | |||
"label": "Name 6", | |||
"description": "Sixth anchor name", | |||
"type": "string" | |||
}, | |||
"7": { | |||
"label": "Name 7", | |||
"description": "Seventh anchor name", | |||
"type": "string" | |||
}, | |||
"8": { | |||
"label": "Name 8", | |||
"description": "Eighth anchor name", | |||
"type": "string" | |||
}, | |||
"9": { | |||
"label": "Name 9", | |||
"description": "Ninth anchor name", | |||
"type": "string" | |||
}, | |||
"10": { | |||
"label": "Name 10", | |||
"description": "Tenth anchor name", | |||
"type": "string" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4", | |||
"5", | |||
"6", | |||
"7", | |||
"8", | |||
"9", | |||
"10" | |||
] | |||
} | |||
</templatedata> | |||
</noinclude> |
Latest revision as of 22:05, 2 December 2024
{{anchor|name1|name2|name3| ... |name10}}
About
Allows to create one or more (up to 10) manual anchors to a specific part of a page.
These can later be linked with regular [[page_name#anchor_name]]
.
(All headings are automatically an anchor and don't require one.)
Example usage
{{anchor|some name}}
An anchor has been inserted above, you can then link it like this.
{{anchor|name1|name2|name3| ... |name10}}
Or you can insert more names in case of e.g. aliases or renaming.
Sources
- About manual anchors - https://www.mediawiki.org/wiki/Help:Links#A_manual_anchor.
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name 1 | 1 | First anchor name | String | required |
Name 2 | 2 | Second anchor name | String | optional |
Name 3 | 3 | Third anchor name | String | optional |
Name 4 | 4 | Fourth anchor name | String | optional |
Name 5 | 5 | Fifth anchor name | String | optional |
Name 6 | 6 | Sixth anchor name | String | optional |
Name 7 | 7 | Seventh anchor name | String | optional |
Name 8 | 8 | Eighth anchor name | String | optional |
Name 9 | 9 | Ninth anchor name | String | optional |
Name 10 | 10 | Tenth anchor name | String | optional |