Difference between revisions of "Template:Card Set List Row"
(Created page with "<noinclude> ==Usage== A row in Template:Card_Set_List. The only parameter is the card name. A missing card name causes the template to produce no output. ==Example== T...") |
|||
Line 10: | Line 10: | ||
<pre><nowiki> | <pre><nowiki> | ||
{| class="wikitable" | {| class="wikitable" | ||
− | !Card name || Type || Cost || Color || Rarity<!-- | + | !Card name || Type || Subtypes || Cost || Color || Rarity<!-- |
-->{{Card Set List Row|Zetalpa, Primal Dawn}}<!-- | -->{{Card Set List Row|Zetalpa, Primal Dawn}}<!-- | ||
-->{{Card Set List Row|Crush of Tentacles}}<!-- | -->{{Card Set List Row|Crush of Tentacles}}<!-- | ||
Line 21: | Line 21: | ||
{| class="wikitable" | {| class="wikitable" | ||
− | !Card name || Type || Cost || Color || Rarity<!-- | + | !Card name || Type || Subtypes || Cost || Color || Rarity<!-- |
-->{{Card Set List Row|Zetalpa, Primal Dawn}}<!-- | -->{{Card Set List Row|Zetalpa, Primal Dawn}}<!-- | ||
-->{{Card Set List Row|Crush of Tentacles}}<!-- | -->{{Card Set List Row|Crush of Tentacles}}<!-- | ||
Line 30: | Line 30: | ||
</noinclude><includeonly>{{#if:{{{1|}}}| | </noinclude><includeonly>{{#if:{{{1|}}}| | ||
{{!}}- | {{!}}- | ||
− | {{!}} [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}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}] | + | {{!}} [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}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}] <!--Name--> |
{{#ifexist: Template:Card data: {{{1}}}|<!-- | {{#ifexist: Template:Card data: {{{1}}}|<!-- | ||
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!-- Type with (P/T) or (shields) | -->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!-- Type with (P/T) or (shields) | ||
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Creature| ({{Card data: {{{1}}}|8}})|<!-- | -->{{#ifeq:{{Card data: {{{1}}}|6}}|Creature| ({{Card data: {{{1}}}|8}})|<!-- | ||
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Support| ({{Card data: {{{1}}}|9}})}}}} | -->{{#ifeq:{{Card data: {{{1}}}|6}}|Support| ({{Card data: {{{1}}}|9}})}}}} | ||
+ | {{!}} ''<small>{{#replace:{{Card data: {{{1}}}|7}}|,|, }}</small>'' <!--Subtypes--> | ||
{{!}} {{Card data: {{{1}}}|5}} <!--Cost--> | {{!}} {{Card data: {{{1}}}|5}} <!--Cost--> | ||
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color--> | {{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color--> | ||
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}} <!--Rarity--> | {{!}} {{Rarity|{{Card data: {{{1}}}|3}}}} <!--Rarity--> | ||
|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly> | |{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly> |
Revision as of 09:48, 27 February 2019
Usage
A row in Template:Card_Set_List.
The only parameter is the card name. A missing card name causes the template to produce no output.
Example
The following shorthand:
{| class="wikitable" !Card name || Type || Subtypes || Cost || Color || Rarity<!-- -->{{Card Set List Row|Zetalpa, Primal Dawn}}<!-- -->{{Card Set List Row|Crush of Tentacles}}<!-- -->{{Card Set List Row|Time of Ice}}<!-- -->{{Card Set List Row|Storm the Vault}} |}
Produces:
Card name | Type | Subtypes | Cost | Color | Rarity |
---|---|---|---|---|---|
Zetalpa, Primal Dawn | (4/8) | Dinosaur, Elder | 19 | ||
Crush of Tentacles | 21 | ||||
Time of Ice | (2) | Saga | 18 | ||
Storm the Vault | (4) | 11 |