Template:Decks: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Fenhl
m (→‎Template usage: formatting)
>Fenhl
(extended to support up to 10 decks)
Line 18: Line 18:
  {{#if:{{{14|}}}|{{Decks row|{{{14}}}|{{{15}}}|{{{16}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{14|}}}|{{Decks row|{{{14}}}|{{{15}}}|{{{16}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{17|}}}|{{Decks row|{{{17}}}|{{{18}}}|{{{19}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{17|}}}|{{Decks row|{{{17}}}|{{{18}}}|{{{19}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{20|}}}|{{Decks row|{{{20}}}|{{{21}}}|{{{22}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{23|}}}|{{Decks row|{{{23}}}|{{{24}}}|{{{25}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{26|}}}|{{Decks row|{{{26}}}|{{{27}}}|{{{28}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{29|}}}|{{Decks row|{{{29}}}|{{{30}}}|{{{31}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
|#default=
|#default=
  {{#if:{{{4|}}} |{{Decks row|{{{4}}} |{{{5}}} |type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{4|}}} |{{Decks row|{{{4}}} |{{{5}}} |type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
Line 24: Line 28:
  {{#if:{{{10|}}}|{{Decks row|{{{10}}}|{{{11}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{10|}}}|{{Decks row|{{{10}}}|{{{11}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{12|}}}|{{Decks row|{{{12}}}|{{{13}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
  {{#if:{{{12|}}}|{{Decks row|{{{12}}}|{{{13}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{14|}}}|{{Decks row|{{{14}}}|{{{15}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{16|}}}|{{Decks row|{{{16}}}|{{{17}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{18|}}}|{{Decks row|{{{18}}}|{{{19}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
{{#if:{{{20|}}}|{{Decks row|{{{20}}}|{{{21}}}|type={{{1}}}|plural={{{5|}}}|page name={{{page name|}}}}}}}
}}
}}
|}</includeonly><noinclude>This template produces a list of decks, e.g. intro packs, event decks, or theme decks.
|}</includeonly><noinclude>This template produces a list of decks, e.g. intro packs, event decks, or theme decks.
Line 29: Line 37:
== Template usage ==
== Template usage ==


* Supports a maximum of six decks.
* Supports a maximum of ten decks.
* The first parameter specifies the type of deck. It must be <code>planeswalker</code> for Planeswalker decks and <code>commander</code> for Commander theme decks. Generic theme decks use <code>theme</code>, if theme deck has an iconic card use <code>iconic</code>. Other deck types, like <code>challenger</code>, <code>event</code>, or <code>intro</code> are also supported. User pages may use <code>user</code>, to disable the automatic deck name linking and add a column for notes.
* The first parameter specifies the type of deck. It must be <code>planeswalker</code> for Planeswalker decks and <code>commander</code> for Commander theme decks. Generic theme decks use <code>theme</code>, if theme deck has an iconic card use <code>iconic</code>. Other deck types, like <code>challenger</code>, <code>event</code>, or <code>intro</code> are also supported. User pages may use <code>user</code>, to disable the automatic deck name linking and add a column for notes.
* For each deck, there are two or three required parameters, depending on deck type:
* For each deck, there are two or three required parameters, depending on deck type:

Revision as of 18:45, 23 April 2018

This template produces a list of decks, e.g. intro packs, event decks, or theme decks.

Template usage

  • Supports a maximum of ten decks.
  • The first parameter specifies the type of deck. It must be planeswalker for Planeswalker decks and commander for Commander theme decks. Generic theme decks use theme, if theme deck has an iconic card use iconic. Other deck types, like challenger, event, or intro are also supported. User pages may use user, to disable the automatic deck name linking and add a column for notes.
  • For each deck, there are two or three required parameters, depending on deck type:
    • The deck name. Use unknown if not yet announced. Link syntax ([[Link|Deck name]]) can be used to override the default link.
    • The deck's colors, e.g. WUBRG or C.
    • In planeswalker, commander, iconic, intro, and user mode, there is a third required parameter:
      • For Planeswalker decks, the name of the Planeswalker. Do not surround with <c></c>.
      • For Commander theme decks, the name of the primary commander. Do not surround with <c></c>.
      • For theme decks with iconic card, the name of the iconic card. Do not surround with <c></c>.
      • For intro packs, the name of the foil rare card. Do not surround with <c></c>.
      • For user decks, any deck notes.
  • The optional parameter {{{page name}}} can be used to change where the deck names will link to (they will link to a section on a subpage of {{{page name}}} depending on deck type). It defaults to the name of the page where it is used.

Examples

Theme deck

{{Decks|theme
  |page name=10th Edition
  |Arcanis's Guile|U
  |Cho-Manno's Resolve|W
  |Evincar's Tyranny|B
  |Kamahl's Temper|R
  |Molimo's Might|G
}}
Theme deck name Colors included
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Template:Decks row
Template:Decks row
Template:Decks row

Theme deck with Iconic card

{{Decks|iconic
  |page name=Archenemy: Nicol Bolas
  |Nicol Bolas|UBR|Nicol Bolas, Planeswalker
  |Gideon Jura|W|Gideon Jura
  |Chandra Nalaar|R|Chandra, Pyromaster
  |Nissa Revane|GU|Nissa, Worldwaker
}}
Theme deck name Colors included Iconic card
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Template:Decks row
Template:Decks row

Commander theme deck

{{Decks|commander
  |Call the Spirits|WB|Daxos the Returned
  |Seize Control|UR|Mizzix of the Izmagnus
  |Plunder the Graves|BG|Meren of Clan Nel Toth
  |Wade into Battle|RW|Kalemne, Disciple of Iroas
  |Swell the Host|GU|Ezuri, Claw of Progress
}}
Theme deck name Color Identity Commander
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Template:Decks row
Template:Decks row
Template:Decks row

Challenger deck

{{Decks|challenger
  |page name=Challenger Decks (2018) 
  |Hazoret Aggro|R
  |Vehicle Rush|WRB
  |Second Sun Control|WU
  |Counter Surge|BG
}}
Challenger deck name Colors included
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Template:Decks row
Template:Decks row

Planeswalker deck

{{Decks|planeswalker
  |page name=Kaladesh
  |Chandra|RW|Chandra, Pyrogenius
  |Nissa|GU|Nissa, Nature's Artisan
}}
Planeswalker deck name Colors included Planeswalker
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Intro pack

{{Decks|intro
  |page name=Shards of Alara
  |Bant Exalted|GWU|Battlegrace Angel
  |Esper Artifice|WUB|Master of Etherium
  |Grixis Undead|UBR|Vein Drinker
  |Primordial Jund|BRG|Flameblast Dragon
  |Naya Behemoths|RGW|Spearbreaker Behemoth
}}
Intro pack name Colors included Foil rare
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Template:Decks row
Template:Decks row
Template:Decks row

Event deck

{{Decks|event
  |page name=Mirrodin Besieged
  |Infect and Defile|UB
  |Into the Breach|R
}}
Event deck name Colors included
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row

Clash pack

{{Decks|clash
  |page name=Magic Origins
  |Armed|WG
  |Dangerous|WBG
}}
Clash pack deck name Colors included
{W} {U} {B} {R} {G}
Template:Decks row

Template:Decks row