Difference between revisions of "Template:Deck List Row"

From mtgpq wiki
Jump to: navigation, search
Line 17: Line 17:
  
 
</noinclude><includeonly>|-
 
</noinclude><includeonly>|-
{{#ifexist: Template:Card data: {{{1}}}|
 
 
{{!}} [[{{#explode:{{Card data|{{{1}}}}}|{{!}}|0}}]]            <!--Name-->
 
{{!}} [[{{#explode:{{Card data|{{{1}}}}}|{{!}}|0}}]]            <!--Name-->
{{!}} {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}}<!--           Type  with (P/T) or (shields)
+
{{#ifexist: Template:Card data: {{{1}}}|<!--
 +
-->{{!}} {{{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}s}}<!--         Type  with (P/T) or (shields)
 
-->{{#ifeq:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Creature| &nbsp;({{#explode:{{Card data|{{{1}}}}}|{{!}}|7}})|<!--
 
-->{{#ifeq:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Creature| &nbsp;({{#explode:{{Card data|{{{1}}}}}|{{!}}|7}})|<!--
 
-->{{#ifeq:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Support| &nbsp;({{#explode:{{Card data|{{{1}}}}}|{{!}}|8}})}}}}
 
-->{{#ifeq:{{#explode:{{Card data|{{{1}}}}}|{{!}}|5}}|Support| &nbsp;({{#explode:{{Card data|{{{1}}}}}|{{!}}|8}})}}}}
Line 26: Line 26:
 
{{!}} {{SetSymbol|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}} <small>[[{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}]]</small>  <!--Set-->
 
{{!}} {{SetSymbol|{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}}} <small>[[{{#explode:{{Card data|{{{1}}}}}|{{!}}|1}}]]</small>  <!--Set-->
 
{{!}} {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}      <!--Rarity-->
 
{{!}} {{Rarity|{{#explode:{{Card data|{{{1}}}}}|{{!}}|2}}}}      <!--Rarity-->
|{{!}} [[{{{1}}}]]
+
|{{!}} colspan="5" {{!}} ''Missing card data''}}</includeonly>
{{!}} colspan="5" {{!}} ''Missing card data''}}</includeonly>
 

Revision as of 08:35, 13 February 2019

Usage

A row in Template:Deck_List.

The only parameter is the card name.

Example

This mark-up:

{{Deck List Row|Zetalpa, Primal Dawn}}

Produces:

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