More actions
No edit summary |
No edit summary |
||
Line 6: | Line 6: | ||
|, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|  (Error — Too many parameters in {{{{tl|mainarticle}}}})}}</includeonly><noinclude> | |, and [[{{{5}}}]]}}''{{#if:{{{6| }}}|  (Error — Too many parameters in {{{{tl|mainarticle}}}})}}</includeonly><noinclude> | ||
= Documentation = | = Documentation = | ||
When articles become too large, subarticles are usually created. This template, used in the subarticle, uses the name of the main article as a parameter to produce a link to the main article. | |||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{mainarticle | |||
|Article 1 | |||
}} | |||
</pre> | </pre> | ||
You may also include additional links, up to five in total: | |||
<pre> | |||
{{mainarticle | |||
|Article 1 | |||
|Article 2 | |||
|Article 3 | |||
|Article 4 | |||
|Article 5 | |||
}} | |||
</pre> | |||
== Example == | |||
{| class="wikitable" width="100%" | |||
! Code | |||
! Result | |||
|- style="vertical-align:top;" | |||
| <pre>{{mainarticle|Article}}</pre> | |||
| {{mainarticle|Article}} | |||
|- style="vertical-align:top;" | |||
| <pre>{{mainarticle|Article1|Article2|Article3}}</pre> | |||
| {{mainarticle|Article1|Article2|Article3}} | |||
|- style="vertical-align:top;" | |||
| <pre>{{mainarticle|Article1|Article2|Article3|Article4|Article5}}</pre> | |||
| {{mainarticle|Article1|Article2|Article3|Article4|Article5}} | |||
|} | |||
=== Required parameters === | === Required parameters === |
Revision as of 17:41, 6 August 2006
Documentation
When articles become too large, subarticles are usually created. This template, used in the subarticle, uses the name of the main article as a parameter to produce a link to the main article.
Usage
{{mainarticle |Article 1 }}
You may also include additional links, up to five in total:
{{mainarticle |Article 1 |Article 2 |Article 3 |Article 4 |Article 5 }}
Example
Code | Result |
---|---|
{{mainarticle|Article}} |
|
{{mainarticle|Article1|Article2|Article3}} |
|
{{mainarticle|Article1|Article2|Article3|Article4|Article5}} |
Required parameters
Insert Required parameters
Optional parameters
Insert Optional parameters