| Latest revision |
Your text |
| Line 1: |
Line 1: |
| <includeonly>:<span class="noexcerpt">''{{#if:{{{text|}}}|{{{text}}}|Main article{{#if:{{{2|}}}|s}}}}: [[{{{1}}}]]{{#if:{{{2|}}}|{{#if:{{{3|}}}|,| and}} [[{{{2}}}]]}}{{#if:{{{3|}}}|{{#if:{{{4|}}}|,| and}} [[{{{3}}}]]}}{{#if:{{{4|}}}|{{#if:{{{5|}}}|,| and}} [[{{{4}}}]]}}{{#if:{{{5|}}}|, and [[{{{5}}}]]}}''{{#if:{{{6|}}}| <span class="error">(Error: Too many parameters)</span>}}</span></includeonly><noinclude> | | <includeonly> |
| | :''Main article{{#if:{{{2|}}}|s}}: [[{{{1}}}]]{{#if:{{{2| }}} |
| | |{{#if:{{{3|}}}|, | and }}[[{{{2}}}]]}}{{#if:{{{3|}}} |
| | |{{#if:{{{4|}}}|, |, and }}[[{{{3}}}]]}}{{#if:{{{4|}}} |
| | |{{#if:{{{5|}}}|, |, and }}[[{{{4}}}]]}}{{#if:{{{5|}}} |
| | |, 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 creates a standardized link back to the parent article(s).
| | ''Insert what this template is about.'' |
|
| |
|
| == Usage == | | == Usage == |
| <pre> | | <pre> |
| {{mainarticle|Article 1}}
| | ''Insert full usage here.'' |
| </pre> | | </pre> |
|
| |
|
| === Custom Preamble === | | === Required parameters === |
| You can customize the introductory text using the `|text=` parameter. When using a custom preamble, the template will not automatically append an "s" for multiple links:
| | ''Insert Required parameters'' |
| <pre>
| |
| {{mainarticle|Article 1|Article 2|text=Further information}}
| |
| </pre>
| |
| | |
| You may include up to five articles in total:
| |
| <pre>
| |
| {{mainarticle|Article 1|Article 2|Article 3|Article 4|Article 5}}
| |
| </pre>
| |
| | |
| == Example ==
| |
| {| class="wikitable" width="100%"
| |
| ! Code !! Result
| |
| |-
| |
| | <pre>{{mainarticle|Article}}</pre> || :''Main article: [[Article]]''
| |
| |-
| |
| | <pre>{{mainarticle|Article 1|Article 2|text=Further information}}</pre> || :''Further information: [[Article 1]] and [[Article 2]]''
| |
| |-
| |
| | <pre>{{mainarticle|Article1|Article2|Article3}}</pre> || :''Main articles: [[Article1]], [[Article2]] and [[Article3]]''
| |
| |}
| |
|
| |
|
| [[Category:Templates using ParserFunctions]]
| | === Optional parameters === |
| [[Category:Infoline]]
| | ''Insert Optional parameters'' |
| </noinclude>
| |