Template:Seealso: Difference between revisions
Template page
More actions
New page: :''See also: {{#if:{{{1|}}}|[[:{{{1}}}|{{{l1|{{{1}}}}}}]]}} {{#if:{{{2|}}}|{{#if:{{{3|}}}|, | and }} [[:{{{2}}}|{{{l2|{{{2}}}}}}]] }}{{#if:{{{3|}}}|{{#if:{{{4|}}}|, |, and }} [[:... |
No edit summary |
||
| Line 15: | Line 15: | ||
}}{{#if:{{{15|}}}|, and [[:{{{15}}}|{{{l15|{{{15}}}}}}]] | }}{{#if:{{{15|}}}|, and [[:{{{15}}}|{{{l15|{{{15}}}}}}]] | ||
}} | }} | ||
= 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 == | |||
<pre> | |||
{{mainarticle | |||
|Article 1 | |||
}} | |||
</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}} | |||
|} | |||
[[Category:Templates using ParserFunctions|{{PAGENAME}}]] | |||
[[Category:Infoline|{{PAGENAME}}]] | |||
</noinclude> | |||
Revision as of 18:50, 17 January 2007
- See also:
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}}
|