Open main menu

mtgpq wiki β

Changes

Template:Card-Details

2,294 bytes added, 21:27, 14 September 2018
Created page with "<noinclude>Shorthand for creating a table with card details. Parameters are: * <code><nowiki>{{{id}}}</nowiki></code>: The card's ID on mtgpq.info (e.g. 1) * <code><nowiki>{{{..."
<noinclude>Shorthand for creating a table with card details.
Parameters are:
* <code><nowiki>{{{id}}}</nowiki></code>: The card's ID on mtgpq.info (e.g. 1)
* <code><nowiki>{{{name}}}</nowiki></code>: The card's name
* <code><nowiki>{{{rules}}}</nowiki></code>: The text on the card (optional)
* <code><nowiki>{{{set}}}</nowiki></code>: The card's set (e.g. Origins)
* <code><nowiki>{{{type}}}</nowiki></code>: The card's type (e.g. Creature)
* <code><nowiki>{{{subtype}}}</nowiki></code>: The card's subtype (e.g. Human Monk)
* <code><nowiki>{{{rarity}}}</nowiki></code>: The card's rarity (e.g. Rare)
* <code><nowiki>{{{cost}}}</nowiki></code>: The card's cost
* <code><nowiki>{{{colors}}}</nowiki></code>: The card's colors (e.g. UBR)
* <code><nowiki>{{{power}}}</nowiki></code>: The card's power (optional, creatures only)
* <code><nowiki>{{{toughness}}}</nowiki></code>: The card's toughness (optional, creatures only)
* <code><nowiki>{{{shield}}}</nowiki></code>: The number of the card's shields (optional, supports only)

== Example ==
This shorthand
<pre><nowiki>
{{Card-Details
|id = 1
|name = Abbot of Keral Keep
|rules = When this creature enters the battlefield, destroy 1 block of 5x5 gems.
|set = Origins
|type = Creature
|subtype = Human Monk
|rarity = Rare
|colors = R
|cost = 13
|power = 6
|toughness = 5
}}</nowiki></pre>

Produces:
{{Card-Details
|id = 1
|name = Abbot of Keral Keep
|rules = When this creature enters the battlefield, destroy 1 block of 5x5 gems.
|set = Origins
|type = Creature
|subtype = Human Monk
|rarity = Rare
|colors = R
|cost = 13
|power = 6
|toughness = 5
}}
</noinclude><includeonly>

=={{PAGENAME}}==
{| class="wikitable"
|-
|[[Type]] / [[Subtype]]:||[[{{{type}}}]] / {{{subtype}}}
|- {{#if: {{{rules|}}} | | style="display: none;" }}
|[[Rules]]:||{{{rules}}}
|-
|[[Set]] / [[Rarity]]:||[[{{{set}}}]] / [[{{{rarity}}}]]
|-
|Cost:||{{{cost}}}
|-
|Colors:||{{nowrap|{{replace|{{replace|{{replace|{{replace|{{replace|{{replace|
{{{colors}}}
|W|{{Symbol|W}}}}
|U|{{Symbol|U}}}}
|B|{{Symbol|B}}}}
|R|{{Symbol|R}}}}
|G|{{Symbol|G}}}}
|C|{{Symbol|C}}}}
}}
|- {{#if: {{{power|}}} | | style="display: none;" }}
|Power / Toughness:||{{{power}}} / {{{toughness}}}
|- {{#if: {{{shield|}}} | | style="display: none;" }}
|Shield:||{{{shield}}}
|}
</includeonly>