Difference between revisions of "Template:Card stats inline"

From mtgpq wiki
Jump to: navigation, search
Line 31: Line 31:
 
-->{{#if:{{#pos:{{{2}}}|cost}}|{{#replace:{{Card data: {{{1}}}|5}}|,|//}}}}}}<!-- Cost
 
-->{{#if:{{#pos:{{{2}}}|cost}}|{{#replace:{{Card data: {{{1}}}|5}}|,|//}}}}}}<!-- Cost
 
-->{{#if:{{#pos:{{{2}}}|type}}|<!--
 
-->{{#if:{{#pos:{{{2}}}|type}}|<!--
-->&nbsp;'''·''' {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}}<!--               Type
+
-->&nbsp;'''·''' {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s||13}}<!--           Type
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}}}}<!--
+
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s||13}}}}<!--
 
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Creature}}|&nbsp;({{Card data: {{{1}}}|8}})|<!--
 
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Creature}}|&nbsp;({{Card data: {{{1}}}|8}})|<!--
 
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Support}}|&nbsp;({{Card data: {{{1}}}|9}})}}}}}}<!--
 
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Support}}|&nbsp;({{Card data: {{{1}}}|9}})}}}}}}<!--
Line 42: Line 42:
 
-->&nbsp;'''·''' {{SetSymbol|{{Card data: {{{1}}}|2}}}}}}<!--                    Set
 
-->&nbsp;'''·''' {{SetSymbol|{{Card data: {{{1}}}|2}}}}}}<!--                    Set
 
-->{{#if:{{#pos:{{{2}}}|legacy}}|<!--
 
-->{{#if:{{#pos:{{{2}}}|legacy}}|<!--
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;'''·''' [[File:Legacy-bg.png|x18px|link=Legacy|Legacy]]}}}}<!--               Legacy}}</includeonly>
+
-->{{#if:{{#pos:{{StandardSetList}}|{{Card data: {{{1}}}|2}}}}||&nbsp;'''·''' {{Legacy icon}}}}}}<!-- Legacy}}</includeonly>

Revision as of 11:33, 19 April 2020

Usage

Produces a visual display of card stats in inline text.

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

Example

The following shorthand:

{{Card stats inline|Zetalpa, Primal Dawn|cost,type,color,rarity,set,legacy}}

{{Card stats inline|Beanstalk Giant//Fertile Footsteps|cost,type,color,rarity,set,legacy}}

Produces:

19 · Creatures (4/8) · White · Mythic · Rivals of Ixalan · Legacy

12//11 · Creatures//Spells (1/1) · Green · Mythic · Throne of Eldraine · Legacy