Difference between revisions of "Template:Mainarticle"
From WikiRaider
(One intermediate revision by the same user not shown) | |||
Line 10: | Line 10: | ||
|{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | |{{#if:{{{10|}}}|, |, and }}[[{{{9}}}|{{{l9|{{{9}}}}}}]]}}{{#if:{{{10|}}} | ||
|, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div></includeonly><noinclude> | |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div></includeonly><noinclude> | ||
− | + | 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 <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> |
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.