Template:Main: Difference between revisions
Jump to navigation
Jump to search
m 1 revision imported |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | <onlyinclude>{{hatnote|extraclasses=relarticle mainarticle|1={{#ifeq:{{SUBJECTSPACE}}|Category | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
| | |The main pages for this [[Help:Categories|category]] are | ||
| | |The main page for this [[Help:Categories|category]] is | ||
}} | }} | ||
|{{#if:{{{2|}}} | |{{#if:{{{2|}}} | ||
| | |Main pages: | ||
| | |Main page: | ||
}} | }} | ||
}} {{Separated entries | }} {{Separated entries | ||
|1={{ll | |1={{ll|{{{1|{{PAGENAME}}}}}|{{{l1|}}}}} | ||
|2={{#if:{{{2|}}}|{{ll | |2={{#if:{{{2|}}}|{{ll|{{{2}}}|{{{l2|}}}}}}} | ||
|3={{#if:{{{3|}}}|{{ll | |3={{#if:{{{3|}}}|{{ll|{{{3}}}|{{{l3|}}}}}}} | ||
|4={{#if:{{{4|}}}|{{ll | |4={{#if:{{{4|}}}|{{ll|{{{4}}}|{{{l4|}}}}}}} | ||
|5={{#if:{{{5|}}}|{{ll | |5={{#if:{{{5|}}}|{{ll|{{{5}}}|{{{l5|}}}}}}} | ||
|6={{#if:{{{6|}}}|{{ll | |6={{#if:{{{6|}}}|{{ll|{{{6}}}|{{{l6|}}}}}}} | ||
|7={{#if:{{{7|}}}|{{ll | |7={{#if:{{{7|}}}|{{ll|{{{7}}}|{{{l7|}}}}}}} | ||
|8={{#if:{{{8|}}}|{{ll | |8={{#if:{{{8|}}}|{{ll|{{{8}}}|{{{l8|}}}}}}} | ||
|9={{#if:{{{9|}}}|{{ll | |9={{#if:{{{9|}}}|{{ll|{{{9}}}|{{{l9|}}}}}}} | ||
|10={{#if:{{{10|}}}|{{ll | |10={{#if:{{{10|}}}|{{ll|{{{10}}}|{{{l10|}}}}}}} | ||
|separator=<nowiki/>{{int|comma-separator}}<nowiki/> | |separator=<nowiki/>{{int|comma-separator}}<nowiki/> | ||
|conjunction=<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/> | |conjunction=<nowiki/>{{int|and}}{{int|word-separator}}<nowiki/> | ||
}}{{#if:{{{11|}}}|  | }}{{#if:{{{11|}}}|  (too many parameters in {{[[Template:main|main]]}})}}}}</onlyinclude> | ||
{{Documentation|content= | {{Documentation|content= | ||
== Examples == | |||
== Examples == | |||
<pre> | <pre> | ||
{{Main}} | {{Main}} | ||
Line 41: | Line 38: | ||
{{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}} | ||
}} | }} |
Latest revision as of 12:06, 10 December 2021
Main page: Main
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 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. | 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 |
[[Category:Templates{{#translation:}}]]