Template:Main: Difference between revisions
Appearance
m Created page with '<div class="rellink{{#if:{{{extraclasses|}}}|<nowiki> </nowiki>{{{extraclasses}}}}}">{{{1}}}</div><noinclude> This meta-template is used to style section hatnotes which direct us...' |
No edit summary |
||
| Line 1: | Line 1: | ||
{{rellink|extraclasses=noprint relarticle mainarticle|Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} | |||
|{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | |||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |||
|{{#if:{{{5|}}}|, |, and }}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}} | |||
|{{#if:{{{6|}}}|, |, and }}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}} | |||
|{{#if:{{{7|}}}|, |, and }}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}} | |||
|{{#if:{{{8|}}}|, |, and }}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}} | |||
|{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}} | |||
|{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |||
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}}}<noinclude> | |||
== Usage == | |||
To link to a "main article" on a topic, use {{main|The other article}}. | |||
You can also list several articles such as: {{main|Article1|Article2|Article3}}. It will then display: | |||
:<div class="noprint">''Main articles: [[Article1]], [[Article2]] and [[Article3]]''</div> | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 20:54, 10 May 2009
Usage
To link to a "main article" on a topic, use {{main|The other article}}.
You can also list several articles such as: {{main|Article1|Article2|Article3}}. It will then display: