Template:Mainarticle: Difference between revisions
Template page
More actions
optimizing template |
m colon placement |
||
| Line 1: | Line 1: | ||
<includeonly><span class="noexcerpt"> | <includeonly>:<span class="noexcerpt">''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> | ||
= Documentation = | = Documentation = | ||
When articles become too large, subarticles are usually created. This template creates a standardized link back to the parent article(s). | When articles become too large, subarticles are usually created. This template creates a standardized link back to the parent article(s). | ||
Revision as of 02:27, 23 June 2026
Documentation
When articles become too large, subarticles are usually created. This template creates a standardized link back to the parent article(s).
Usage
{{mainarticle|Article 1}}
You may include up to five articles in total:
{{mainarticle|Article 1|Article 2|Article 3|Article 4|Article 5}}
Example
| Code | Result |
|---|---|
{{mainarticle|Article}} |
:Main article: Article |
{{mainarticle|Article1|Article2|Article3}} |
:Main articles: Article1, Article2 and Article3 |