Difference between revisions of "Template:Main"
Jump to navigation
Jump to search
(Referenced Documentation) |
m (Removed __NOEDITSECTION__) |
||
Line 1: | Line 1: | ||
<includeonly><div role="note" class="hatnote navigation-not-searchable">Main article{{#if:{{{2|}}}{{{3|}}}|s}}: {{#if:{{{l1|}}}|[[{{{1|Main}}}|{{{l1|}}}]]|[[{{{1|Main}}}]]}}{{#if:{{{2|}}}|{{#if:{{{l2|}}}|, [[{{{2|Main}}}|{{{l2|}}}]]|, [[{{{2|Main}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{l3|}}}|, [[{{{3|Main}}}|{{{l3|}}}]]|, [[{{{3|Main}}}]]}}}}</div></includeonly> | <includeonly><div role="note" class="hatnote navigation-not-searchable">Main article{{#if:{{{2|}}}{{{3|}}}|s}}: {{#if:{{{l1|}}}|[[{{{1|Main}}}|{{{l1|}}}]]|[[{{{1|Main}}}]]}}{{#if:{{{2|}}}|{{#if:{{{l2|}}}|, [[{{{2|Main}}}|{{{l2|}}}]]|, [[{{{2|Main}}}]]}}}}{{#if:{{{3|}}}|{{#if:{{{l3|}}}|, [[{{{3|Main}}}|{{{l3|}}}]]|, [[{{{3|Main}}}]]}}}}</div></includeonly> | ||
− | |||
<noinclude>{{Documentation}}</noinclude> | <noinclude>{{Documentation}}</noinclude> |
Latest revision as of 20:08, 8 June 2018
This template is used right under a section header to inform and link the user to a more detailled page about a subject.
Syntax[edit]
A sample how to call the template. Feel free to copy this example. Please remove the parameters that are left blank.
{{Main | Article 1 | l1 = Article label 1 | Article 2 | l2 = Article label 2 | Article 3 | l3 = Article label 3}}
Parameter list[edit]
The parameters are as follows:
(Parameter without name)
The name of the Article to be linkedl1, l2, l3
A label for the link
Examples[edit]
{{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}}
→
The above documentation is transcluded from Template:Main/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |