Difference between revisions of "Template:Deck List Row"

From mtgpq wiki
Jump to: navigation, search
Line 15: Line 15:
 
!Card name || Type || Cost || Color || Rarity || Set<!--
 
!Card name || Type || Cost || Color || Rarity || Set<!--
 
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
 
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
-->{{Deck List Row|Crush of Tentacles}}
+
-->{{Deck List Row|Crush of Tentacles}}<!--
 +
-->{{Deck List Row|Time of Ice}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 27: Line 28:
 
!Card name || Type || Cost || Color || Rarity || Set<!--
 
!Card name || Type || Cost || Color || Rarity || Set<!--
 
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
 
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
-->{{Deck List Row|Crush of Tentacles}}
+
-->{{Deck List Row|Crush of Tentacles}}<!--
 +
-->{{Deck List Row|Time of Ice}}
 
|}
 
|}
  
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
{{!}}-
 
{{!}}-
{{!}} [https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}} {{Card data: {{{1}}}|1}}]            <!--Name-->
+
{{!}} [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}} {{Card data: {{{1}}}|1}}]            <!--Name-->
 
{{#ifexist: Template:Card data: {{{1}}}|<!--
 
{{#ifexist: Template:Card data: {{{1}}}|<!--
 
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!--        Type  with (P/T) or (shields)
 
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!--        Type  with (P/T) or (shields)

Revision as of 04:01, 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}}<!--
-->{{Deck List Row|Time of Ice}}
|}

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 
Time of Ice Supports (2) 18 Blue Uncommon Dominaria DOM Legacy