(Don't need translation) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | |||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
| | | The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] are | ||
| | | The main page for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is | ||
}} | }} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
| | | Main pages: | ||
| | | Main page: | ||
}} | }} | ||
}} [[Special:MyLanguage/{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}]]{{#if:{{{2| }}} | }} [[Special:MyLanguage/{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}]]{{#if:{{{2| }}} | ||
Line 23: | Line 21: | ||
{{documentation|content= | {{documentation|content= | ||
== Examples == | |||
== Examples == | |||
<pre> | <pre> | ||
{{Main}} | {{Main}} | ||
Line 39: | Line 35: | ||
{{Main|Article 1|Article 2|Article Something#3}} | {{Main|Article 1|Article 2|Article Something#3}} | ||
==Template data== | |||
==Template data== | |||
{{Template:Main/doc}} | {{Template:Main/doc}} | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 21:26, 13 July 2023
Template documentation
Examples
{{Main}}
Main page: Main
{{Main|Article 1}}
Main page: Article 1
{{Main|Article 1|Article 2|Article Something#3}}
Template data
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.
TemplateData for Main
This template is used to display a note directing users to the main article about a subject. This should be used at the top of a section, usually directly below a section heading.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Page 1 | 1 | Page name of related article. It includes Special:MyLanguage prefix. | Page name | required |
Label 1 | l1 | Custom label for the link to Page 1.
| String | optional |
Page 2 | 2 | no description | Page name | optional |
Label 2 | l2 | no description
| String | optional |
Page 3 | 3 | no description | Page name | optional |
Label 3 | l3 | no description
| String | optional |