Template:Main/doc
This template uses Lua: |
This template is used after the heading to link to the subtopic article that has been summarized.
Usage
- Basic usage:
{{Main|page}}
- All parameters:
{{Main|page1|page2|page3| ... |l1 = label1|l2 = label2|l3 = label3| ... |selfref = yes}}
Parameters
TemplateData for Main
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 |
Examples
{{Main}}
→{{Main|Article}}
→{{Main|Article#Section}}
→{{Main|Article#Section|l1=Custom section label}}
→{{Main|Article1|Article2|Article3}}
→{{Main|Article1|l1=Custom label 1|Article2|l2=Custom label 2}}
→{{Main|(15760) 1992 QB1|l1={{mp|(15760) 1992 QB|1}}}}
→
Errors
If the name of the first page that you want to link to is not specified, the current page name (with no namespace prefix) is used instead:
No errors can be displayed due to the illegal usage of parameters or other usages (i.e. the first parameter can be omitted, other parameters can be used even if the first one is empty (and automatically filled with the current page name (with no namespace prefix)), equals sign can be used as one of the parameters, and template can be used by direct call to the module (using "#invoke")). This is not the case for {{see also}}, for example.
See also
- {{Further}}: Further information: Article.