Template:Main: Difference between revisions

From Wikipedia of the Dark Brotherhood, an online Star Wars Club
m (Fixing (I hope), the main template)
m (Fine, I'll just steal Wookieepedia's one.)
Line 1: Line 1:
:''Main article: [[{{{1}}}{{#if: {{{2|}}}|{{!}}{{{2}}}}}]]<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| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}<noinclude>
 
 
To use: Paste the following text into the desired article, and fill in the appropriate fields.
To use: Paste the following text into the desired article, and fill in the appropriate fields.
<pre><nowiki>{{Main|article name|displayed text}}</nowiki></pre>
 
Note:Displayed test is optional.
<pre><nowiki>{{Main|first article|second article}}</nowiki></pre>
 
Note: To change the text displayed for the link use l1= for the first link, l2= etc.
 
<pre><nowiki>{{Main|first article|l1=first display text}}</nowiki></pre>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Revision as of 00:17, 14 October 2014

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


To use: Paste the following text into the desired article, and fill in the appropriate fields.

{{Main|first article|second article}}

Note: To change the text displayed for the link use l1= for the first link, l2= etc.

{{Main|first article|l1=first display text}}