Difference between revisions of "Template:Deck List Mini"
(Tag: Undo) |
|||
(5 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
== Parameters == | == Parameters == | ||
− | The | + | * name (optional): The name of the deck. |
− | * cost - The cost in mana of the card | + | * pw (optional): The planeswalker for the deck. |
− | * type - The type of the card, along with P/T for creatures and shields for supports | + | * 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: |
− | * 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 | + | ** legacy - A legacy banner if the card is from a legacy set |
− | + | * (up to 10 unlabeled parameters): The names of cards in the deck list. | |
− | + | * notes (optional): Notes about the deck, such as how to play it. | |
− | |||
− | |||
== Example == | == Example == | ||
Line 24: | Line 22: | ||
<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,color |
− | |The Locust God | + | | Champion of Wits |
− | |Unesh, Criosphinx Sovereign | + | | Ominous Sphinx |
− | |Vizier of the Anointed | + | | The Locust God |
− | |Endless Sands | + | | Unesh, Criosphinx Sovereign |
− | |Imaginary Threats | + | | Vizier of the Anointed |
− | | | + | | Endless Sands |
− | |Riddleform | + | | Imaginary Threats |
− | |Swarm Intelligence | + | | Kefnet's Last Word |
+ | | Riddleform | ||
+ | | Swarm Intelligence | ||
+ | |notes = Example notes about how to play the deck. | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 40: | Line 41: | ||
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,color |
− | |The Locust God | + | | Champion of Wits |
− | |Unesh, Criosphinx Sovereign | + | | Ominous Sphinx |
− | |Vizier of the Anointed | + | | The Locust God |
− | |Endless Sands | + | | Unesh, Criosphinx Sovereign |
− | |Imaginary Threats | + | | Vizier of the Anointed |
− | | | + | | Endless Sands |
− | |Riddleform | + | | Imaginary Threats |
− | |Swarm Intelligence | + | | Kefnet's Last Word |
+ | | Riddleform | ||
+ | | Swarm Intelligence | ||
+ | |notes = Example notes about how to play the deck. | ||
}} | }} | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>{| class="wikitable" |
− | + | {{#if:{{{name|}}}| | |
− | {{ | + | {{#if:{{{pw|}}}| |
− | + | ! colspan="2" style="text-align:left" {{!}} {{{name}}} | |
− | + | {{!}}- | |
− | ! | + | ! colspan="2" style="text-align:left" {{!}} <small>Planeswalker:</small> [[{{Trim|{{{pw}}}}}]] |
− | + | | | |
− | -->{{#if:{{{ | + | ! colspan="2" style="text-align:left" {{!}} {{{name}}} |
− | -->{{#if:{{{ | + | }} |
− | -->{{#if:{{{ | + | }}{{#if:{{{name|}}}|| |
− | -->{{#if:{{{ | + | {{#if:{{{pw|}}}| |
− | -->{{#if:{{{ | + | ! colspan="2" style="text-align:left" {{!}} <small>Planeswalker:</small> [[{{Trim|{{{pw}}}}}]] |
− | -->{{#if:{{{ | + | }} |
− | -->{{#if:{{{ | + | }}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{1|}}}|{{Deck List Row Mini|{{{1}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{2|}}}|{{Deck List Row Mini|{{{2}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- |
− | -->{{#if:{{{ | + | -->{{#if:{{{3|}}}|{{Deck List Row Mini|{{{3}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- |
− | + | -->{{#if:{{{4|}}}|{{Deck List Row Mini|{{{4}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | |
+ | -->{{#if:{{{5|}}}|{{Deck List Row Mini|{{{5}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | ||
+ | -->{{#if:{{{6|}}}|{{Deck List Row Mini|{{{6}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | ||
+ | -->{{#if:{{{7|}}}|{{Deck List Row Mini|{{{7}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | ||
+ | -->{{#if:{{{8|}}}|{{Deck List Row Mini|{{{8}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | ||
+ | -->{{#if:{{{9|}}}|{{Deck List Row Mini|{{{9}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}}<!-- | ||
+ | -->{{#if:{{{10|}}}|{{Deck List Row Mini|{{{10}}}|{{#if:{{{show|}}}|{{{show}}}|cost,type,rarity}}}}}} | ||
+ | {{#if:{{{notes|}}}| | ||
+ | {{!}}- | ||
+ | {{!}} colspan="2" {{!}} <small>{{{notes}}}</small>}} | ||
|}</includeonly> | |}</includeonly> |
Latest revision as of 06:02, 22 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
- (up to 10 unlabeled parameters): The names of cards in the deck list.
- notes (optional): Notes about the deck, such as how to play it.
Example
The following shorthand:
{{Deck List Mini |name = Deck name |pw = Jace, Telepath Unbound |show = cost,type,rarity,color | Champion of Wits | Ominous Sphinx | The Locust God | Unesh, Criosphinx Sovereign | Vizier of the Anointed | Endless Sands | Imaginary Threats | Kefnet's Last Word | Riddleform | Swarm Intelligence |notes = Example notes about how to play the deck. }}
Produces:
Deck name | |
---|---|
Planeswalker: Jace, Telepath Unbound | |
Champion of Wits | 9 · (2/1) · · |
Ominous Sphinx | 22 · (6/6) · · |
The Locust God | 22 · (8/8) · · |
Unesh, Criosphinx Sovereign | 16 · (8/8) · · |
Vizier of the Anointed | 10 · (4/6) · · |
Endless Sands | 12 · · · |
Imaginary Threats | 5 · · · |
Kefnet's Last Word | 11 · · · |
Riddleform | 7 · (2) · · |
Swarm Intelligence | 13 · (4) · · |
Example notes about how to play the deck. |