Difference between revisions of "Template:Mainarticle"

From WikiRaider
Jump to: navigation, search
(New page: <includeonly> <div class="mainarticle">''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}} |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{...)
 
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<div class="mainarticle">''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
+
:<div class="mainarticle">''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}|{{{l1|{{{1}}}}}}]]{{#if:{{{2| }}}
 
  |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
  |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}}
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
 
  |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}}
Line 9: Line 9:
 
  |{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{9|}}}|,&#32;|,&#32;and&#32;}}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{10|}}}|,&#32;|,&#32;and&#32;}}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 
  |{{#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;)}}</div>
+
  |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|&#32; (too many parameters in &#123;&#123;[[Template:main|main]]&#125;&#125;)}}</div></includeonly><noinclude>
</includeonly>
+
The '''Template Mainarticle''' serves to include the ''main article'' line to any parent article.
<noinclude>
+
 
Use this template to add the ''main article'' line to any parent article.
+
 
 +
This should be done whenever a subarticle is too long to be included in the parent article (e.g. A full list of anything from enemies to level builders, or the full story of a game...)
 +
 
 +
 
 +
Simply add <nowiki>{{mainarticle|"Name of the subarticle"}}</nowiki> at the appropriate spot.
 +
 
 +
 
 +
You can add more than one article in the mainarticle field (e.g. if you want to list the ''dangers'' in a game: traps, enemies and so on...) by simply adding them, separating them with |.
 +
Example: <nowiki>{{mainarticle|Tomb Raider Legend Enemies|Tomb Raider Legend Traps}}</nowiki>
 +
 
 +
 
 +
Up to 10 subarticles can be added.
 
</noinclude>
 
</noinclude>

Latest revision as of 14:43, 30 December 2010

The Template Mainarticle serves to include the main article line to any parent article.


This should be done whenever a subarticle is too long to be included in the parent article (e.g. A full list of anything from enemies to level builders, or the full story of a game...)


Simply add {{mainarticle|"Name of the subarticle"}} at the appropriate spot.


You can add more than one article in the mainarticle field (e.g. if you want to list the dangers in a game: traps, enemies and so on...) by simply adding them, separating them with |. Example: {{mainarticle|Tomb Raider Legend Enemies|Tomb Raider Legend Traps}}


Up to 10 subarticles can be added.