Difference between revisions of "Template:Card Trader cost"

From Yugipedia
Jump to: navigation, search
Line 1: Line 1:
{{ #if: {{{1|}}}
+
<!--
 +
## Variables
 +
-->{{ #vardefine: $gold      | {{ #show: {{{1|}}} |?Card Trader Gold cost }} }}<!--
 +
-->{{ #vardefine: $jewels    | {{ #show: {{{1|}}} |?Card Trader Jewel cost }} }}<!--
 +
-->{{ #vardefine: $stones    | {{ #show: {{{1|}}} |?Card Trader Stone cost }} }}<!--
 +
-->{{ #vardefine: $attribute | {{ #explode: {{ #show: {{{1|}}} |?Attribute }} |[| 2 }} }}<!--
 +
-->{{ #if: {{{1|}}}
 
| {{ #ifeq: {{ #show: {{{1|}}} |?Medium }} | Yu-Gi-Oh! Duel Links
 
| {{ #ifeq: {{ #show: {{{1|}}} |?Medium }} | Yu-Gi-Oh! Duel Links
   | {{ #show: {{{1|}}} |?Card Trader Gold cost }} Gold<br /><!--
+
   | {{ #if: {{ #var: $gold }}   | {{ #var: $gold }} Gold<br /> }}<!--
  -->{{ #show: {{{1|}}} |?Card Trader Jewel cost }} {{ #show: {{{1|}}} |?Rarity }} Jewels<br /><!--
+
  -->{{ #if: {{ #var: $jewels }} | {{ #var: $jewels }} {{ #show: {{{1|}}} |?Rarity }} Jewels<br /> }}<!--
  -->{{ #show: {{{1|}}} |?Card Trader Stone cost }} Stones of <!--
+
  -->{{ #if: {{ #var: $stones }} | {{ #var: $stones }} Stones of <!--
-->{{ #if: {{ #vardefine: $attribute | {{ #show: {{{1|}}} |?Attribute }} }}
+
  -->{{ #switch: {{ #var: $attribute }}
    | {{ #switch: {{ #var: $attribute }}
+
       | EARTH   = Earth
       | EARTH = Earth
+
       | WIND     = Wind
       | WIND   = Wind
+
       | FIRE     = Fire
       | FIRE   = Fire
+
       | WATER   = Water
       | WATER = Water
+
       | LIGHT   = Light
       | LIGHT = Light
+
       | DARK     = Darkness
       | DARK   = Darkness
+
      | #default = {{ #explode: {{ #show: {{{1|}}} |?Property }} | | 1 }}
 
       }}
 
       }}
    | {{ #explode: {{ #show: {{{1|}}} |?Property }} | | 1 }}
 
 
     }}
 
     }}
 
   }}
 
   }}
 
}}
 
}}

Revision as of 17:06, 29 December 2018