Open main menu

mtgpq wiki β

Changes

Template:Deck List Row

528 bytes added, 08:31, 13 February 2019
no edit summary
<noinclude>
==Usage==
A row in [[Template:Deck_List]].
== Parameters ==# A The only parameter is the card name# The card type: creature, spell, or support. (These keywords are case-insensitive.)
== Example == This codemark-up:
<pre><nowiki>
{{Deck List Row|Champion of Wits|creatureZetalpa, Primal Dawn}}
</nowiki></pre>
Produces this content:
{{Deck List Row|Fateful Showdown|creatureZetalpa, Primal Dawn}}
</noinclude><includeonly>|-
{{#ifexist: Template:Card data: {{{1}}}|{{!}} [[{{#explode:{{Card data|{{{1}}}}}|{{!}}|0}}]] <!--Name-->{{!}} {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}}<!-- Type with (P/T) or (shields)-->{{#ifeq:{{lc#explode:{{Card data|{{{21}}}}}|{{!}}|creature5}}|[[FileCreature| &nbsp;({{#explode:Creature-Icon.png{{Card data|{{{size1}}}}}|x16px{{!}}|7}]]})|<!---->{{#ifeq:{{lc#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Support| &nbsp;({{#explode:{{Card data|{{2{1}}}}}|spell{{!}}|[[File8}})}}}}{{!}} {{#explode:Spell{{Card data|{{{1}}}}}|{{!}}|4}} <!--Cost--Icon.png>{{!}} {{Color Icons|{{#explode:{{sizeCard data|x16px{{{1}}}}]]}|{{!}}|3}}}} <!--Color-->{{!}} {{SetSymbol|{{#ifeqexplode:{{lc:Card data|{{{21}}}}}|support{{!}}|1}}}} <small>[[File{{#explode:Support-Icon.png{{Card data|{{{size1}}}}}|x16px{{!}}|1}}]]</small> <!--Set-->{{!}} {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}} <!--Rarity--> &nbsp;[[|{{!}} {{{1}}}]]{{!}} colspan="5" {{!}} ''Missing card data''}}</includeonly>