Difference between revisions of "Template:Deck List Mini"

From mtgpq wiki
Jump to: navigation, search
Line 5: Line 5:
 
== Parameters ==
 
== Parameters ==
  
The first parameter is a comma-separated list of fields which will be shown in the deck list.  This may be one or more of:
+
* name: The name of the deck.
* cost - The cost in mana of the card
+
* pw: The planeswalker for the deck.
* type - The type of the card, along with P/T for creatures and shields for supports
+
* show: A comma-separated list of fields for each card to show in the deck list.  This may be one or more of:
* color - The color of the card
+
** cost - The cost in mana of the card
* rarity - The rarity of the card
+
** type - The type of the card, along with P/T for creatures and shields for supports
* set - The set containing the card
+
** color - The color of the card
* legacy - A legacy banner if the card is from a legacy set
+
** rarity - The rarity of the card
 
+
** set - The set containing the card
The remaining parameters are the names of the cards to show in the deck list. These must match the corresponding card template names.
+
** legacy - A legacy banner if the card is from a legacy set
 +
* 1-10: The name of a card in the deck list.
 +
* notes: Notes about the deck, such as how to play it.
  
 
== Example ==
 
== Example ==
Line 24: Line 26:
 
<pre><nowiki>
 
<pre><nowiki>
 
{{Deck List Mini
 
{{Deck List Mini
|cost,type,rarity
+
|name=Deck name
|Champion of Wits
+
|pw=Jace, Telepath Unbound
|Ominous Sphinx
+
|show=cost,type,rarity
|The Locust God
+
|1=Champion of Wits
|Unesh, Criosphinx Sovereign
+
|2=Ominous Sphinx
|Vizier of the Anointed
+
|3=The Locust God
|Endless Sands
+
|4=Unesh, Criosphinx Sovereign
|Imaginary Threats
+
|5=Vizier of the Anointed
|Kefnet's Last Word
+
|6=Endless Sands
|Riddleform
+
|7=Imaginary Threats
|Swarm Intelligence
+
|8=Kefnet's Last Word
 +
|9=Riddleform
 +
|10=Swarm Intelligence
 +
|notes=Example notes about how to play the deck.
 
}}
 
}}
 
</nowiki></pre>
 
</nowiki></pre>
Line 40: Line 45:
 
Produces:
 
Produces:
 
{{Deck List Mini
 
{{Deck List Mini
|cost,type,rarity
+
|name=Deck name
|Champion of Wits
+
|pw=Jace, Telepath Unbound
|Ominous Sphinx
+
|show=cost,type,rarity
|The Locust God
+
|1=Champion of Wits
|Unesh, Criosphinx Sovereign
+
|2=Ominous Sphinx
|Vizier of the Anointed
+
|3=The Locust God
|Endless Sands
+
|4=Unesh, Criosphinx Sovereign
|Imaginary Threats
+
|5=Vizier of the Anointed
|Kefnet's Last Word
+
|6=Endless Sands
|Riddleform
+
|7=Imaginary Threats
|Swarm Intelligence
+
|8=Kefnet's Last Word
 +
|9=Riddleform
 +
|10=Swarm Intelligence
 +
|notes=Example notes about how to play the deck.
 
}}
 
}}
  
 
</noinclude><includeonly>{| class="wikitable"
 
</noinclude><includeonly>{| class="wikitable"
!Card name || Details<!--
+
{{#if:{{{name|}}}|
-->{{#if:{{{2|}}}|{{Deck List Row Mini|{{{2}}}|{{{1}}}}}}}<!--
+
  {{#if:{{{pw|}}}|
-->{{#if:{{{3|}}}|{{Deck List Row Mini|{{{3}}}|{{{1}}}}}}}<!--
+
    ! colspan="2" style="text-align:left" {{!}} {{{name}}}
-->{{#if:{{{4|}}}|{{Deck List Row Mini|{{{4}}}|{{{1}}}}}}}<!--
+
    {{!}}-
-->{{#if:{{{5|}}}|{{Deck List Row Mini|{{{5}}}|{{{1}}}}}}}<!--
+
    ! colspan="2" style="text-align:left" {{!}} <small>Planeswalker:</small> [[{{Trim|{{{pw}}}}}]]
-->{{#if:{{{6|}}}|{{Deck List Row Mini|{{{6}}}|{{{1}}}}}}}<!--
+
  |
-->{{#if:{{{7|}}}|{{Deck List Row Mini|{{{7}}}|{{{1}}}}}}}<!--
+
    ! colspan="2" style="text-align:left" {{!}} {{{name}}}
-->{{#if:{{{8|}}}|{{Deck List Row Mini|{{{8}}}|{{{1}}}}}}}<!--
+
  }}
-->{{#if:{{{9|}}}|{{Deck List Row Mini|{{{9}}}|{{{1}}}}}}}<!--
+
}}{{#if:{{{name|}}}||
-->{{#if:{{{10|}}}|{{Deck List Row Mini|{{{10}}}|{{{1}}}}}}}<!--
+
  {{#if:{{{pw|}}}|
-->{{#if:{{{11|}}}|{{Deck List Row Mini|{{{11}}}|{{{1}}}}}}}<!--
+
    ! colspan="2" style="text-align:left" {{!}} <small>Planeswalker:</small> [[{{Trim|{{{pw}}}}}]]
-->{{#if:{{{12|}}}|{{Deck List Row Mini|{{{12}}}|{{{1}}}}}}}<!--
+
  }}
-->{{#if:{{{13|}}}|{{Deck List Row Mini|{{{13}}}|{{{1}}}}}}}
+
}}<!--
 +
-->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{2|}}}|{{Deck List Row Mini|{{{2}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{3|}}}|{{Deck List Row Mini|{{{3}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{4|}}}|{{Deck List Row Mini|{{{4}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{5|}}}|{{Deck List Row Mini|{{{5}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{6|}}}|{{Deck List Row Mini|{{{6}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{7|}}}|{{Deck List Row Mini|{{{7}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{8|}}}|{{Deck List Row Mini|{{{8}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{9|}}}|{{Deck List Row Mini|{{{9}}}|{{{show}}}}}}}<!--
 +
-->{{#if:{{{10|}}}|{{Deck List Row Mini|{{{10}}}|{{{show}}}}}}}
 +
{{#if:{{{notes|}}}|
 +
{{!}}-
 +
{{!}} colspan="2" {{!}} {{{notes}}}}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 07:08, 17 February 2019

Usage

The Deck List Mini template displays deck contents in a skinny table, suitable for several deck lists appearing side-by-side.

Parameters

  • name: The name of the deck.
  • pw: The planeswalker for the deck.
  • show: A comma-separated list of fields for each card to show in the deck list. This may be one or more of:
    • cost - The cost in mana of the card
    • type - The type of the card, along with P/T for creatures and shields for supports
    • color - The color of the card
    • rarity - The rarity of the card
    • set - The set containing the card
    • legacy - A legacy banner if the card is from a legacy set
  • 1-10: The name of a card in the deck list.
  • notes: Notes about the deck, such as how to play it.

Example

The following is an example of how to use this template to document a deck list:

Example

The following shorthand:

{{Deck List Mini
|name=Deck name
|pw=Jace, Telepath Unbound
|show=cost,type,rarity
|1=Champion of Wits
|2=Ominous Sphinx
|3=The Locust God
|4=Unesh, Criosphinx Sovereign
|5=Vizier of the Anointed
|6=Endless Sands
|7=Imaginary Threats
|8=Kefnet's Last Word
|9=Riddleform
|10=Swarm Intelligence
|notes=Example notes about how to play the deck.
}}

Produces:

Deck name
Planeswalker: Jace, Telepath Unbound 
Champion of Wits · Creatures (2/1) · Rare 
Ominous Sphinx 22 · Creatures (6/6) · Rare 
The Locust God 22 · Creatures (8/8) · Mythic 
Unesh, Criosphinx Sovereign 16 · Creatures (8/8) · Mythic 
Vizier of the Anointed 10 · Creatures (4/6) · Rare 
Endless Sands 12 · Spells · Rare 
Imaginary Threats · Spells · Rare 
Kefnet's Last Word 11 · Spells · Rare 
Riddleform · Supports (2) · Uncommon 
Swarm Intelligence 13 · Supports (4) · Mythic
Example notes about how to play the deck.