Difference between revisions of "Template:Deck List Row"

From mtgpq wiki
Jump to: navigation, search
Line 15: Line 15:
  
 
{{Deck List Row|Zetalpa, Primal Dawn}}
 
{{Deck List Row|Zetalpa, Primal Dawn}}
 +
 +
{{Deck List Row|Crush of Tentacles}}
  
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
Line 25: Line 27:
 
{{!}} {{Card data: {{{1}}}|5}}                <!--Cost-->
 
{{!}} {{Card data: {{{1}}}|5}}                <!--Cost-->
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
{{!}} {{SetSymbol|{{Card data: {{{1}}}|2}}}} <small>[[{{Card data: {{{1}}}|2}}]]</small>  <!--Set-->
+
{{!}} {{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||[[File:Legacy-bg.png|x20px|link=Legacy|Legacy]]&nbsp;}}<!--      Set
 +
-->{{SetSymbol|{{Card data: {{{1}}}|2}}}} <small>[[{{Card data: {{{1}}}|2}}]]</small>
 
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}      <!--Rarity
 
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}      <!--Rarity
 
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>
 
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>

Revision as of 00:30, 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

This mark-up:

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

Produces:

  |- | 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