Template:Main: Difference between revisions
Jump to navigation
Jump to search
No edit summary Tag: Reverted |
m Reverted edits by Blue Hair & their Fabulous Pronouns (talk) to last revision by Jorb Tag: Rollback |
||
Line 3: | Line 3: | ||
</noinclude><includeonly>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | </noinclude><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 | |<translate><!--T:12--> The main pages for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] are</translate> | ||
|The main page for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is | |<translate><!--T:18--> The main page for this [[<tvar name=cats-help>Special:MyLanguage/Help:Categories</tvar>|category]] is</translate> | ||
}} | }} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
|Main pages: | |<translate><!--T:13--> Main pages:</translate> | ||
|Main page: | |<translate><!--T:19--> Main page:</translate> | ||
}} | }} | ||
}} {{ll|{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}}}{{#if:{{{2| }}} | }} {{ll|{{{1|{{PAGENAME:{{translatable}}}}}}}|{{{l1|{{{1|{{PAGENAME:{{translatable}}}}}}}}}}}}{{#if:{{{2| }}} | ||
Line 45: | Line 45: | ||
}} | }} | ||
[[Category:Templates{{#translation:}}]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 11:05, 31 March 2025
Examples
{{Main}}
<translate> Main page:</translate> Main
{{Main|Article 1}}
<translate> Main page:</translate> Article 1
{{Main|Article 1|Article 2|Article Something#3}}
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Main in articles based on its 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 |