Difference between revisions of "Template:Main"
Jump to navigation
Jump to search
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "</>" to "") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<languages/> | <languages/> | ||
− | </noinclude>{{#switch: | + | </noinclude>{{#switch: |
| = | | = | ||
<div role="note" class="rellink relarticle mainarticle">{{#ifeq:{{SUBJECTSPACE}}|Category | <div role="note" class="rellink relarticle mainarticle">{{#ifeq:{{SUBJECTSPACE}}|Category | ||
− | | | + | | The main {{<tvar|ifeq1>#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{<tvar|if1>#if:{{{2|}}}|s}} for this [[<tvar|cats-help>Special:MyLanguage/Help:Categories|category]] {{<tvar|if2>#if:{{{2|}}}|are|is}} |
− | | | + | | Main {{<tvar|ifeq1>#ifeq:{{NAMESPACE:{{{1}}}}}||article|page}}{{<tvar|if1>#if:{{{2|}}}|s}}:}} [[Special:MyLanguage/{{{1|{{PAGENAME}}}}}|{{{l1|{{{1|{{PAGENAME}}}}}}}}]]{{#if:{{{2| }}} |
|{{#if:{{{3|}}}|, | and }}[[Special:MyLanguage/{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | |{{#if:{{{3|}}}|, | and }}[[Special:MyLanguage/{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}[[Special:MyLanguage/{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |{{#if:{{{4|}}}|, |, and }}[[Special:MyLanguage/{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
Line 14: | Line 14: | ||
|{{#if:{{{9|}}}|, |, and }}[[Special:MyLanguage/{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | |{{#if:{{{9|}}}|, |, and }}[[Special:MyLanguage/{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | ||
|{{#if:{{{10|}}}|, |, and }}[[Special:MyLanguage/{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |{{#if:{{{10|}}}|, |, and }}[[Special:MyLanguage/{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | ||
− | |, and [[Special:MyLanguage/{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  | + | |, and [[Special:MyLanguage/{{{10}}}|{{{l10|{{{10}}}}}}]]}}{{#if:{{{11| }}}|  (too many parameters in <tvar|code1>{{[[<tvar|link>Template:main|main]]<tvar|code2>}})}}</div> |
| #default= | | #default= | ||
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:Main|noshift=1}} | {{#invoke:Template translation|renderTranslatedTemplate|template=Template:Main|noshift=1}} | ||
}}<noinclude> | }}<noinclude> | ||
− | + | ||
− | == Example == | + | == Example == |
− | + | ||
<pre> | <pre> | ||
{{Main|Article 1|Article 2|Article Something#3}} | {{Main|Article 1|Article 2|Article Something#3}} | ||
Line 27: | Line 27: | ||
{{Main|Article 1|Article 2|Article Something#3}} | {{Main|Article 1|Article 2|Article Something#3}} | ||
− | + | ||
− | ==Template data== | + | ==Template data== |
− | + | ||
<templatedata> | <templatedata> |
Latest revision as of 15:06, 21 December 2019
Main {{<tvar|ifeq1>#ifeq:||article|page}}{{<tvar|if1>#if:|s}}: Maincode1>{{[[<tvar|link>Template:main|main]]<tvar
Example
{{Main|Article 1|Article 2|Article Something#3}}
Main {{<tvar|ifeq1>#ifeq:||article|page}}{{<tvar|if1>#if:Article 2|s}}: Article 1, Article 2, and Article Something#3code1>{{[[<tvar|link>Template:main|main]]<tvar
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 | required |
Label 1 | l1 | Custom label for the link to Page 1
| String | optional |
Page 2 | 2 | no description | Page | optional |
Label 2 | l2 | no description | String | optional |
Page 3 | 3 | no description | Page | optional |
Label 3 | l3 | no description | String | optional |