Difference between revisions of "Template:Card Set List Row"

From mtgpq wiki
Jump to: navigation, search
 
(3 intermediate revisions by the same user not shown)
Line 14: Line 14:
 
-->{{Card Set List Row|Crush of Tentacles}}<!--
 
-->{{Card Set List Row|Crush of Tentacles}}<!--
 
-->{{Card Set List Row|Time of Ice}}<!--
 
-->{{Card Set List Row|Time of Ice}}<!--
-->{{Card Set List Row|Storm the Vault}}
+
-->{{Card Set List Row|Storm the Vault}}<!--
 +
-->{{Card Set List Row|Storm the Vault//Vault of Catlacan}}<!--
 +
-->{{Card Set List Row|Beanstalk Giant//Fertile Footsteps}}
 
|}
 
|}
 
</nowiki></pre>
 
</nowiki></pre>
Line 25: Line 27:
 
-->{{Card Set List Row|Crush of Tentacles}}<!--
 
-->{{Card Set List Row|Crush of Tentacles}}<!--
 
-->{{Card Set List Row|Time of Ice}}<!--
 
-->{{Card Set List Row|Time of Ice}}<!--
-->{{Card Set List Row|Storm the Vault}}
+
-->{{Card Set List Row|Storm the Vault}}<!--
 +
-->{{Card Set List Row|Storm the Vault//Vault of Catlacan}}<!--
 +
-->{{Card Set List Row|Beanstalk Giant//Fertile Footsteps}}
 
|}
 
|}
  
 
</noinclude><includeonly>{{#if:{{{1|}}}|&nbsp;
 
</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}} {{#if:{{#pos:{{Card data: {{{1}}}|1}}|/}}|{{#explode:{{Card data: {{{1}}}|1}}|/|0}}|{{Card data: {{{1}}}|1}}}}<!--Name-->
+
{{!}} {{Card URL|{{Trim|{{{1}}}}}}}                   <!--Name-->
 
{{#ifexist: Template:Card data: {{{1}}}|<!--
 
{{#ifexist: Template:Card data: {{{1}}}|<!--
-->{{!}} {{{{Card data: {{{1}}}|6}}s}}<!--         Type with (P/T) or (shields)
+
-->{{!}} {{{{#explode:{{Card data: {{{1}}}|6}}|,|0}}s}}<!--Type
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Creature| &nbsp;({{Card data: {{{1}}}|8}})|<!--
+
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|,}}|//{{{{#explode:{{Card data: {{{1}}}|6}}|,|1}}s}}}}<!--
-->{{#ifeq:{{Card data: {{{1}}}|6}}|Support| &nbsp;({{Card data: {{{1}}}|9}})}}}}
+
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Creature}}| &nbsp;({{Card data: {{{1}}}|8}})|<!--
{{!}} ''<small>{{#replace:{{Card data: {{{1}}}|7}}|,|,&nbsp;}}</small>''                 <!--Subtypes-->
+
-->{{#if:{{#pos:{{Card data: {{{1}}}|6}}|Support}}| &nbsp;({{Card data: {{{1}}}|9}})}}}}
{{!}} {{Card data: {{{1}}}|5}}                 <!--Cost-->
+
{{!}} ''<small>{{#replace:{{Card data: {{{1}}}|7}}|,|,&nbsp;}}</small>''           <!--Subtypes-->
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}} <!--Color-->
+
{{!}} {{#replace:{{Card data: {{{1}}}|5}}|,|//}}      <!--Cost-->
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}     <!--Rarity-->
+
{{!}} {{Color Icons|{{Card data: {{{1}}}|4}}}}         <!--Color-->
 +
{{!}} {{Rarity|{{Card data: {{{1}}}|3}}}}             <!--Rarity-->
 
|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>
 
|{{!}} colspan="5" {{!}} ''Missing card data''}}}}</includeonly>

Latest revision as of 02:49, 23 February 2020

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}}<!--
-->{{Card Set List Row|Storm the Vault//Vault of Catlacan}}<!--
-->{{Card Set List Row|Beanstalk Giant//Fertile Footsteps}}
|}

Produces:

Card name Type Subtypes Cost Color Rarity 
Zetalpa, Primal Dawn Creatures (4/8) Dinosaur, Elder 19 White Mythic 
Crush of Tentacles Spells 21 Blue Mythic 
Time of Ice Supports (2) Saga 18 Blue Uncommon 
Storm the Vault Supports (4) 11 BlueRed Rare 
Storm the Vault//Vault of Catlacan Supports (4) 11 BlueRed Rare 
Beanstalk Giant//Fertile Footsteps Creatures//Spells (1/1) Giant 12//11 Green Mythic