Template:Main/doc: Difference between revisions
mp>Arp242 Shouldn't it be " these topics", instead of "this topic" when adding multiple articles? |
deprecate Template:Wikipedia template |
||
Line 1: | Line 1: | ||
{{Documentation|fromWikipedia=true}} | |||
This template is used at the start of a section to link to the main article on that subject. | |||
==TemplateData== | |||
<templatedata> | |||
{ | |||
"description": "This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, \"Main article: Article 1, Article 2 and Article 3\"", | |||
"params": { | |||
"1": { | |||
"label": "Page 1", | |||
"description": "The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead. ", | |||
"type": "wiki-page-name", | |||
"required": false, | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Page 2", | |||
"description": "The name of the second page that you want to link to.", | |||
"type": "wiki-page-name", | |||
"required": false | |||
}, | |||
"3": { | |||
"label": "Page 3", | |||
"description": "The name of the third page that you want to link to. More pages can be added using the parameters \"4\", \"5\", etc.", | |||
"type": "wiki-page-name", | |||
"required": false | |||
}, | |||
"l1": { | |||
"type": "string", | |||
"label": "Label 1", | |||
"description": "What the first linked page is to be displayed as.", | |||
"aliases": [ | |||
"label 1" | |||
] | |||
}, | |||
"l2": { | |||
"label": "Label 2", | |||
"description": "What the second linked page is to be displayed as.", | |||
"type": "string", | |||
"aliases": [ | |||
"label 2" | |||
] | |||
}, | |||
"l3": { | |||
"label": "Label 3", | |||
"description": "What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with \"l4\" for page 4) as parameter names.", | |||
"type": "string", | |||
"aliases": [ | |||
"label 3" | |||
] | |||
}, | |||
"selfref": { | |||
"type": "boolean", | |||
"label": "Self reference", | |||
"description": "Set to \"yes\" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site." | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"l1", | |||
"l2", | |||
"l3", | |||
"selfref" | |||
], | |||
"format": "{{_|_ = _}}\n" | |||
} | |||
</templatedata> | |||
<includeonly>[[Category:General wiki templates|{{PAGENAME}}]]</includeonly> | |||
< | |||
{{ | |||
</includeonly> |
Revision as of 11:22, 7 June 2023
This template is used at the start of a section to link to the main article on that subject.
TemplateData
This template is used after the heading of a section, to link to a sub-article (or sub-articles) that is entirely about the topic of the section. The template will display, in italics, "Main article: Article 1, Article 2 and Article 3"
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page 1 | 1 | The name of the first page that you want to link to. If this is not specified, the current page name (with no namespace prefix) is used instead. | Page name | suggested |
Page 2 | 2 | The name of the second page that you want to link to. | Page name | optional |
Page 3 | 3 | The name of the third page that you want to link to. More pages can be added using the parameters "4", "5", etc. | Page name | optional |
Label 1 | l1 label 1 | What the first linked page is to be displayed as. | String | optional |
Label 2 | l2 label 2 | What the second linked page is to be displayed as. | String | optional |
Label 3 | l3 label 3 | What the third linked page is to be displayed as. Other labels can be added by using increasing numbers (starting with "l4" for page 4) as parameter names. | String | optional |
Self reference | selfref | Set to "yes" if the template is a self-reference to Wikipedia that would not make sense on mirrors or forks of the Wikipedia site. | Boolean | optional |