Template:Mainarticle: Difference between revisions

Template page
m (Added french interwiki link.)
 
(updating)
 
(One intermediate revision by the same user not shown)
Line 32: Line 32:
! Result
! Result
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| <pre>{{mainarticle|Article}}</pre>
| <pre>{{mainarticle|Defense Directorate}}</pre>
| {{mainarticle|Article}}
| {{mainarticle|Defense Directorate}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| <pre>{{mainarticle|Article1|Article2|Article3}}</pre>
| <pre>{{mainarticle|Ambuquad|Computer Council|Earth Federation}}</pre>
| {{mainarticle|Article1|Article2|Article3}}
| {{mainarticle|Ambuquad|Computer Council|Earth Federation}}
|- style="vertical-align:top;"
|- style="vertical-align:top;"
| <pre>{{mainarticle|Article1|Article2|Article3|Article4|Article5}}</pre>
| <pre>{{mainarticle|Wilma Deering|William Rogers|Elias Huer|Theopolis|Twiki}}</pre>
| {{mainarticle|Article1|Article2|Article3|Article4|Article5}}
| {{mainarticle|Wilma Deering|William Rogers|Elias Huer|Theopolis|Twiki}}
|}
|}



Latest revision as of 20:39, 24 April 2021

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|Defense Directorate}}
Main article: Defense Directorate
{{mainarticle|Ambuquad|Computer Council|Earth Federation}}
Main articles: Ambuquad, Computer Council, and Earth Federation
{{mainarticle|Wilma Deering|William Rogers|Elias Huer|Theopolis|Twiki}}
Main articles: Wilma Deering, William Rogers, Elias Huer, Theopolis, and Twiki