Difference between revisions of "Template:Mainarticle"

From WikiRaider
Jump to: navigation, search
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
  |{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{9|}}}|, |, and }}[[{{{8}}}|{{{l8|{{{8}}}}}}]]}}{{#if:{{{9|}}}
 
  |{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}}
 
  |{{#if:{{{10|}}}|, |, and }}[[{{{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.