Difference between revisions of "Template:Deck List Row"

From mtgpq wiki
Jump to: navigation, search
Line 40: Line 40:
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
 
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}      <!--Rarity-->
 
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}      <!--Rarity-->
{{!}} {{SetSymbol|{{Card data: {{{1}}}|2}}}} <small>{{Set_expand|{{Card data: {{{1}}}|2}}}}</small><!--
+
{{!}} {{SetSymbol|{{Card data: {{{1}}}|2}}}} [[{{Card data: {{{1}}}|2}}]]<!--
 
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;[[File:Legacy-bg.png|x18px|link=Legacy|Legacy]]}}<!--            Set
 
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;[[File:Legacy-bg.png|x18px|link=Legacy|Legacy]]}}<!--            Set
 
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>
 
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>

Revision as of 00:46, 17 February 2019

Usage

A row in Template:Deck_List.

The only parameter is the card name. A missing card name produces no output.

Example

The following shorthand:

On its own: {{Deck List Row|Zetalpa, Primal Dawn}}

In a table:
{| class="wikitable"
!Card name || Type || Cost || Color || Rarity || Set<!--
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
-->{{Deck List Row|Crush of Tentacles}}
|}

Produces:

On its own:   |- | Zetalpa, Primal Dawn | Creatures (4/8) | 19 | White | Mythic | Rivals of Ixalan RIX Legacy

In a table:

Card name Type Cost Color Rarity Set 
Zetalpa, Primal Dawn Creatures (4/8) 19 White Mythic Rivals of Ixalan RIX Legacy 
Crush of Tentacles Spells 21 Blue Mythic Oath of the Gatewatch OGW Legacy