Difference between revisions of "Template:Deck List Row"

From mtgpq wiki
Jump to: navigation, search
Line 7: Line 7:
 
==Example==
 
==Example==
  
This mark-up:
+
The following shorthand:
 
<pre><nowiki>
 
<pre><nowiki>
{{Deck List Row|Zetalpa, Primal Dawn}}
+
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}}
 +
|}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
Produces:
 
Produces:
  
{{Deck List Row|Zetalpa, Primal Dawn}}
+
On its own: {{Deck List Row|Zetalpa, Primal Dawn}}
  
{{Deck List Row|Crush of Tentacles}}
+
In a table:
 +
{| class="wikitable"
 +
!Card name || Type || Cost || Color || Rarity || Set<!--
 +
-->{{Deck List Row|Zetalpa, Primal Dawn}}<!--
 +
-->{{Deck List Row|Crush of Tentacles}}
 +
|}
  
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
Line 27: Line 39:
 
{{!}} {{Card data: {{{1}}}|5}}                <!--Cost-->
 
{{!}} {{Card data: {{{1}}}|5}}                <!--Cost-->
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
 
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
{{!}} {{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||[[File:Legacy-bg.png|x20px|link=Legacy|Legacy]]&nbsp;}}<!--     Set
+
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}     <!--Rarity-->
-->{{SetSymbol|{{Card data: {{{1}}}|2}}}} <small>[[{{Card data: {{{1}}}|2}}]]</small>
+
{{!}} {{SetSymbol|{{Card data: {{{1}}}|2}}}} <small>{{Set_expand|{{Card data: {{{1}}}|2}}}}</small><!--
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}     <!--Rarity
+
-->{{#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:40, 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