Vorlage:Mainarticle: Unterschied zwischen den Versionen

Aus Battlestar Wiki
Keine Bearbeitungszusammenfassung
 
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
<includeonly>
<includeonly>
:''Main article{{#if:{{{2|}}}|s}}&#58; [[{{{1}}}]]{{#if:{{{2| }}}
:''Hauptartikel{{#if:{{{2|}}}|s}}&#58; [[{{{1}}}]]{{#if:{{{2| }}}
   |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}]]}}{{#if:{{{3|}}}
   |{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}[[{{{2}}}]]}}{{#if:{{{3|}}}
   |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}]]}}{{#if:{{{4|}}}
   |{{#if:{{{4|}}}|,&#32;|,&#32;and&#32;}}[[{{{3}}}]]}}{{#if:{{{4|}}}

Version vom 6. September 2006, 18:23 Uhr

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}}
Hauptartikel: Article
{{mainarticle|Article1|Article2|Article3}}
Hauptartikels: Article1, Article2, and Article3
{{mainarticle|Article1|Article2|Article3|Article4|Article5}}
Hauptartikels: Article1, Article2, Article3, Article4, and Article5