Difference between revisions of "Template:Deck List Row Mini"

From mtgpq wiki
Jump to: navigation, search
 
(5 intermediate revisions by the same user not shown)
Line 31: Line 31:
 
-->{{Deck List Row Mini|Time of Ice|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Time of Ice|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Storm the Vault|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Storm the Vault|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Storm the Vault//Vault of Catlacan|cost,type,rarity}}
+
-->{{Deck List Row Mini|Storm the Vault//Vault of Catlacan|cost,type,rarity}}<!--
 +
-->{{Deck List Row Mini|Black Lotus|cost,type,rarity}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 46: Line 47:
 
-->{{Deck List Row Mini|Time of Ice|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Time of Ice|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Storm the Vault|cost,type,rarity}}<!--
 
-->{{Deck List Row Mini|Storm the Vault|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Storm the Vault//Vault of Catlacan|cost,type,rarity}}
+
-->{{Deck List Row Mini|Storm the Vault//Vault of Catlacan|cost,type,rarity}}<!--
 +
-->{{Deck List Row Mini|Black Lotus|cost,type,rarity}}
 
|}
 
|}
  
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
{{!}}-
 
{{!}}-
{{!}} style="border-right:solid 0px;{{#if:{{{3|}}}|{{Tint{{Rarity expand|{{Card data: {{{1}}}|3}}}}}}}}" {{!}} {{Card URL|{{Trim|{{{1}}}}}}}    <!--Name-->
+
{{#ifexpr: {{#len:{{Card data: {{{1}}}|2}}}} = 3|<!--
{{#ifexist: Template:Card data: {{{1}}}|<!--
+
-->{{!}} style="border-right:solid 0px;{{#if:{{{3|}}}|{{Tint{{Rarity expand|{{Card data: {{{1}}}|3}}}}}}}}" {{!}} {{nowrap|{{Card URL|{{Trim|{{{1}}}}}}}}}   <!--Name-->
-->{{!}} style="border-left:solid 0px;{{#if:{{{3|}}}|{{Tint{{Rarity expand|{{Card data: {{{1}}}|3}}}}}}}}" {{!}} {{#if:{{#pos:{{{2}}}|cost}}|<!--
+
{{!}} style="border-left:solid 0px;{{#if:{{{3|}}}|{{Tint{{Rarity expand|{{Card data: {{{1}}}|3}}}}}}}}" {{!}}<!--
-->{{Card data: {{{1}}}|5}}}}<!--        Cost
+
-->{{nowrap|{{Card stats inline|{{{1}}}|{{{2}}}}}}}<!--
-->{{#if:{{#pos:{{{2}}}|type}}|<!--
+
-->|{{!}} style="border-right:solid 0px;" {{!}} {{nowrap|{{{1}}}}}
-->&nbsp;'''·''' {{{{Card data: {{{1}}}|6}}s}}<!--            Type
+
{{!}} style="border-left:solid 0px;" {{!}} <small>{{nowrap|''Missing card data''}}</small>}}}}</includeonly>
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Creature|&nbsp;({{Card data: {{{1}}}|8}})|<!--
 
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Support|&nbsp;({{Card data: {{{1}}}|9}})}}}}}}<!--
 
-->{{#if:{{#pos:{{{2}}}|color}}|<!--
 
-->&nbsp;'''·''' {{Color Icons|{{Card data: {{{1}}}|4}}}}}}<!--      Color
 
-->{{#if:{{#pos:{{{2}}}|rarity}}|<!--
 
-->&nbsp;'''·''' {{Rarity|{{Card data: {{{1}}}|3}}}}}}<!--            Rarity
 
-->{{#if:{{#pos:{{{2}}}|set}}|<!--
 
-->&nbsp;'''·''' {{SetSymbol|{{Card data: {{{1}}}|2}}}}}}<!-- Set
 
-->{{#if:{{#pos:{{{2}}}|legacy}}|<!--
 
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;'''·''' [[File:Legacy-bg.png|x18px|link=Legacy|Legacy]]}}}}<!--                Legacy
 
-->|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>
 

Latest revision as of 03:09, 10 April 2020

Usage

A row in Template:Deck_List_Mini.

See also Template:Deck_List and Template:Deck_List_Row.

The first parameter is the card name.

The second parameter is a comma-separated list of fields indicate the card information to display. The possible display fields are:

  • cost - The cost in mana of the card
  • type - The type of the card, along with P/T for creatures and shields for supports
  • color - The color of the card
  • rarity - The rarity of the card
  • set - The set containing the card
  • legacy - A legacy banner if the card is from a legacy set

The third parameter (optional) is a list of fields for formatting the row. Currently, the only formatting parameter is:

  • rarity_bg - Shade the background of the table row in a color corresponding to the card's rarity

Example

The following shorthand:

On its own: {{Deck List Row Mini|Zetalpa, Primal Dawn|cost,type,color,rarity,set,legacy}}

In a table:
{| class="wikitable"
!Card name || Details<!--
-->{{Deck List Row Mini|Zetalpa, Primal Dawn|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Crush of Tentacles|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Time of Ice|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Storm the Vault|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Storm the Vault//Vault of Catlacan|cost,type,rarity}}<!--
-->{{Deck List Row Mini|Black Lotus|cost,type,rarity}}
|}

Produces:

On its own:   |- | style="border-right:solid 0px;" | Zetalpa, Primal Dawn | style="border-left:solid 0px;" |19 · Creatures (4/8) · White · Mythic · Rivals of Ixalan · Legacy

In a table:

Card name Details 
Zetalpa, Primal Dawn 19 · Creatures (4/8) · Mythic 
Crush of Tentacles 21 · Spells · Mythic 
Time of Ice 18 · Supports (2) · Uncommon 
Storm the Vault 11 · Supports (4) · Rare 
Storm the Vault//Vault of Catlacan 11 · Supports (4) · Rare 
Black Lotus Missing card data