7,180
edits
Changes
no edit summary
A row in [[Template:Deck_List]].
The only first parameter is the card name. A missing card name produces causes the template to produce no output. The second parameter is an optional comma-separated list of fields to display. The possible fields are:* type - The type of the card, along with P/T for creatures and shields for supports* cost - The cost in mana of the card* 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 Each field is in its own column except for Legacy, which is in the same column as Set. Fields are always displayed in the order above. The default fields used if none are specified are all of the above.
==Example==
The following shorthand:
<pre><nowiki>
{| class="wikitable"
!Card name || Type || Cost || Color || Rarity || Set<!--
-->{{Deck List Row|Time of Ice}}<!--
-->{{Deck List Row|Storm the Vault}}
|}
{| class="wikitable"
!Card name || Type<!--
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}
|}
</nowiki></pre>
Produces:
{| class="wikitable"
!Card name || Type || Cost || Color || Rarity || Set<!--
-->{{Deck List Row|Time of Ice}}<!--
-->{{Deck List Row|Storm the Vault}}
|}
{| class="wikitable"
!Card name || Type<!--
-->{{Deck List Row|Zetalpa, Primal Dawn|type}}
|}
{{!}}-
{{!}} [https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}}{{#if:{{#pos:{{Card data: {{{1}}}|7}}|Saga}}|I}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}] <!--Name-->
{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|type}}|1|0}}}}|1|<!---->{{#ifexist: Template:Card data: {{{1}}}|<!--
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!-- Type with (P/T) or (shields)
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Creature| ({{Card data: {{{1}}}|8}})|<!--
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Support| ({{Card data: {{{1}}}|9}})}}}}}}{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|cost}}|1|0}}}}|1|<!---->{{!}} {{Card data: {{{1}}}|5}} }} <!--Cost-->{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|color}}|1|0}}}}|1|<!---->{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}}}} <!--Color-->{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|rarity}}|1|0}}}}|1|<!---->{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}}} <!--Rarity-->{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|set}}|1|0}} or {{#if:{{#pos:{{{2|}}}|legacy}}|1|0}}}}|1|<!---->{{!}} {{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|set}}|1|0}}}}|1|<!---->{{SetSymbol|{{Card data: {{{1}}}|2}}}} [[{{Card data: {{{1}}}|2}}]]}}<!---->{{#ifeq:{{#expr: {{#if:{{{2|}}}|0|1}} or {{#if:{{#pos:{{{2|}}}|legacy}}|1|0}}}}|1|<!---->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}|| [[File:Legacy-bg.png|x18px|link=Legacy|Legacy]]}} }} }}<!-- Set
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>