Open main menu

mtgpq wiki β

Changes

Template:Deck List Row Mini

2,842 bytes added, 04:32, 17 February 2019
Created page with "<noinclude> ==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 secon..."
<noinclude>
==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 field is a comma-separated list of parameters indicate the fields to display.

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

Fields are always displayed in the order above.

==Example==

The following shorthand:
<pre><nowiki>
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}}
|}
</nowiki></pre>

Produces:

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

</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
{{!}}-
{{!}} [https://mtgpq.info/cards/{{#replace:{{#replace:{{#replace:{{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}|'|}}|,|}}| |}}{{#if:{{#pos:{{Card data: {{{1}}}|7}}|Saga}}|I}} {{{1}}}] <!--Name-->
{{#ifexist: Template:Card data: {{{1}}}|<!--
-->{{!}} {{#if:{{#pos:{{{2}}}|cost}}|<!--
-->{{Card data: {{{1}}}|5}}}}<!-- Cost
-->{{#if:{{#pos:{{{2}}}|type}}|<!--
-->&nbsp;'''·''' {{{{Card data: {{{1}}}|6}}s}}<!-- Type
-->{{#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>