Difference between revisions of "Template:Mainarticle"
From WikiRaider
(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|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | |{{#if:{{{3|}}}|, | and }}[[{{{2}}}|{{{l2|{{{2}}}}}}]]}}{{#if:{{{3|}}} | ||
|{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}|{{{l3|{{{3}}}}}}]]}}{{#if:{{{4|}}} | ||
| 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| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div> | + | |, and [[{{{10}}}|{{{l10|{{{10}}}}}}]]}}''{{#if:{{{11| }}}|  (too many parameters in {{[[Template:main|main]]}})}}</div></includeonly><noinclude> |
| − | </includeonly> | + | The '''Template Mainarticle''' serves to include the ''main article'' line to any parent article. |
| − | <noinclude> | + | |
| − | + | ||
| + | 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 15: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.