Template:Main: Difference between revisions

From Halopedia, the Halo wiki

(+sort key)
(Updated using Wikipedia's current version.)
Line 1: Line 1:
:''Main Article: [[{{{1}}}]]''<noinclude>
:''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
|{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
|{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|{{{4}}}}}}]]}}{{#if:{{{5|}}}
|{{#if:{{{6|}}}|,&#32;|,&#32;and&#32;}}[[{{{5}}}|{{{l5|{{{5}}}}}}]]}}{{#if:{{{6|}}}
|{{#if:{{{7|}}}|,&#32;|,&#32;and&#32;}}[[{{{6}}}|{{{l6|{{{6}}}}}}]]}}{{#if:{{{7|}}}
|{{#if:{{{8|}}}|,&#32;|,&#32;and&#32;}}[[{{{7}}}|{{{l7|{{{7}}}}}}]]}}{{#if:{{{8|}}}
|{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
|{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}<noinclude>


== Usage ==
== Usage ==
To link to a "main article" on a topic, use &#123;{main|The other article}}.


To link to a "main article" on a topic, use &#123;{main|The other article}}.
== Advanced Usage (Multiple main articles) ==
For multiple main articles, use <code><nowiki>{{main|Main Article 1|Main Article 2}}</nowiki></code>. Up to ten main articles may be listed.


[[Category:Templates|{{PAGENAME}}]]</noinclude>
== Advanced Usage (Changing a Link's Name) ==
You may want the main article's name to show up differently; named parameters are good for the job.
<pre><nowiki>{{main
|1=Main Article 1
|l1=Link Title 1
|2=Main Article 2
|l2=Link Title 2
}}</nowiki></pre>
Note that the named parameters are a lowercase "L" and a number, ''not'' the number 1 and then another number.

Revision as of 16:49, May 16, 2009

Main article: [[{{{1}}}|{{{1}}}]]

Usage

To link to a "main article" on a topic, use {{main|The other article}}.

Advanced Usage (Multiple main articles)

For multiple main articles, use {{main|Main Article 1|Main Article 2}}. Up to ten main articles may be listed.

Advanced Usage (Changing a Link's Name)

You may want the main article's name to show up differently; named parameters are good for the job.

{{main
|1=Main Article 1
|l1=Link Title 1
|2=Main Article 2
|l2=Link Title 2
}}

Note that the named parameters are a lowercase "L" and a number, not the number 1 and then another number.