Difference between revisions of "Template:Deck List Mini"

From mtgpq wiki
Jump to: navigation, search
Line 5: Line 5:
 
== Parameters ==
 
== Parameters ==
  
* name: The name of the deck.
+
* name (optional): The name of the deck.
* pw: The planeswalker for the deck.
+
* pw (optional): 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:
+
* show (optional): A comma-separated list of fields for each card to show in the deck list.  Default: "cost,type,rarity".  The fields are presented in the fixed order below, and may be one or more of:
 
** cost - The cost in mana of the card
 
** cost - The cost in mana of the card
 
** type - The type of the card, along with P/T for creatures and shields for supports
 
** type - The type of the card, along with P/T for creatures and shields for supports
Line 15: Line 15:
 
** legacy - A legacy banner if the card is from a legacy set
 
** legacy - A legacy banner if the card is from a legacy set
 
* 1-10: The name of a card in the deck list.
 
* 1-10: The name of a card in the deck list.
* notes: Notes about the deck, such as how to play it.
+
* notes (optional): Notes about the deck, such as how to play it.
  
 
== Example ==
 
== Example ==
Line 28: Line 28:
 
|name=Deck name
 
|name=Deck name
 
|pw=Jace, Telepath Unbound
 
|pw=Jace, Telepath Unbound
|show=cost,type,rarity
+
|show=cost,type,rarity,color
 
|1=Champion of Wits
 
|1=Champion of Wits
 
|2=Ominous Sphinx
 
|2=Ominous Sphinx
Line 47: Line 47:
 
|name=Deck name
 
|name=Deck name
 
|pw=Jace, Telepath Unbound
 
|pw=Jace, Telepath Unbound
|show=cost,type,rarity
+
|show=cost,type,rarity,color
 
|1=Champion of Wits
 
|1=Champion of Wits
 
|2=Ominous Sphinx
 
|2=Ominous Sphinx
Line 75: Line 75:
 
   }}
 
   }}
 
}}<!--
 
}}<!--
-->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{2|}}}|{{Deck List Row Mini|{{{2}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{2|}}}|{{Deck List Row Mini|{{{2}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{3|}}}|{{Deck List Row Mini|{{{3}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{3|}}}|{{Deck List Row Mini|{{{3}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{4|}}}|{{Deck List Row Mini|{{{4}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{4|}}}|{{Deck List Row Mini|{{{4}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{5|}}}|{{Deck List Row Mini|{{{5}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{5|}}}|{{Deck List Row Mini|{{{5}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{6|}}}|{{Deck List Row Mini|{{{6}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{6|}}}|{{Deck List Row Mini|{{{6}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{7|}}}|{{Deck List Row Mini|{{{7}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{7|}}}|{{Deck List Row Mini|{{{7}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{8|}}}|{{Deck List Row Mini|{{{8}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{8|}}}|{{Deck List Row Mini|{{{8}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{9|}}}|{{Deck List Row Mini|{{{9}}}|{{{show}}}}}}}<!--
+
-->{{#if:{{{9|}}}|{{Deck List Row Mini|{{{9}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!--
-->{{#if:{{{10|}}}|{{Deck List Row Mini|{{{10}}}|{{{show}}}}}}}
+
-->{{#if:{{{10|}}}|{{Deck List Row Mini|{{{10}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}
 
{{#if:{{{notes|}}}|
 
{{#if:{{{notes|}}}|
 
{{!}}-
 
{{!}}-
{{!}} colspan="2" {{!}} {{{notes}}}}}
+
{{!}} colspan="2" {{!}} <small>{{{notes}}}</small>}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 07:16, 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 (optional): The name of the deck.
  • pw (optional): The planeswalker for the deck.
  • show (optional): A comma-separated list of fields for each card to show in the deck list. Default: "cost,type,rarity". The fields are presented in the fixed order below, and 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 (optional): 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,color
|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) · Blue · Rare 
Ominous Sphinx 22 · Creatures (6/6) · Blue · Rare 
The Locust God 22 · Creatures (8/8) · BlueRed · Mythic 
Unesh, Criosphinx Sovereign 16 · Creatures (8/8) · Blue · Mythic 
Vizier of the Anointed 10 · Creatures (4/6) · Blue · Rare 
Endless Sands 12 · Spells · Colorless · Rare 
Imaginary Threats · Spells · Blue · Rare 
Kefnet's Last Word 11 · Spells · Blue · Rare 
Riddleform · Supports (2) · Blue · Uncommon 
Swarm Intelligence 13 · Supports (4) · Blue · Mythic
Example notes about how to play the deck.