Difference between revisions of "Template:Deck List Row"

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

Revision as of 06:28, 16 February 2019

Usage

A row in Template:Deck_List.

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

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