Template:Main: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
(l1 through l5 params)
(rv - Template now doesn't work properly)
Line 1: Line 1:
:<div class="noprint">''Main article{{#if:{{{2|}}}|s}}&#58; [[{{{1}}}|{{{l1|1}}}]]{{#if:{{{2| }}}
:<div class="noprint">''Main article{{#if:{{{2|}}}|s}}&#58; [[{{{1}}}]]{{#if:{{{2| }}}
   |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|2}}}]]}}{{#if:{{{3|}}}
   |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}]]}}{{#if:{{{3|}}}
   |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|3}}}]]}}{{#if:{{{4|}}}
   |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}]]}}{{#if:{{{4|}}}
   |{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}|{{{l4|4}}}]]}}{{#if:{{{5|}}}
   |{{#if:{{{5|}}}|,&#32;|,&#32;and&#32;}}[[{{{4}}}]]}}{{#if:{{{5|}}}
   |, and [[{{{5}}}|{{{l5|5}}}]]}}''{{#if:{{{6| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}</div><noinclude>
   |, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}</div><noinclude>


== Usage ==
== Usage ==
To link to a "main article" on a topic, use &#123;{main|The other article}}. Optionally specify the appearance of the link through the <tt>l1</tt> parameter.
 
To link to a "main article" on a topic, use &#123;{main|The other article}}.


== See also ==
== See also ==
*{{tl|Catmore}} For categories
*{{tl|Catmore}} For categories
* {{tl|Details}}
* {{tl|Details}}

Revision as of 02:23, 22 August 2006