Difference between revisions of "Template:BAM card/prices"

From Yugipedia
Jump to: navigation, search
(Removing the "BAM" prefix from property names.)
(The resell stuff has been moved to Template:BAM card/resell. Adjusted the alt text to give "Coins:", rather than "Coin:".)
Line 1: Line 1:
<!-- 1 = currency, 2 = cost, 3 = resell
+
<!-- 1 = currency, 2 = cost
-->{{ #if: {{{2|}}}
+
-->{{BAM-Icon|{{{1}}}|alt={{ #ifeq: {{{1}}} | Coin | Coins: {{{1}}}: }}}} {{{2}}} [[Cost::{{{1}}} {{{2}}}| ]]
| {{BAM-Icon|{{{1}}}|alt={{{1}}}:}} {{{2}}} [[Cost::{{{1}}} {{{2}}}| ]] /
 
}}<!--
 
-->{{BAM-Icon|Coin|alt=Coins:}} {{ #if: {{{3|}}}
 
| {{{3}}} [[Resell price::{{{3}}}| ]]
 
| {{ #if: {{{2|}}}
 
  | {{ #switch: {{{1}}}
 
    | Coin = {{ #expr: {{ #expr: 10*ceil({{{2}}}/10) }} / 2 }} [[Resell price::{{ #expr: 10*ceil({{{2}}}/10) / 2 }}| ]]
 
    | CP  = {{ #expr: {{{2}}} * 100 }} [[Resell price::{{ #expr: {{{2}}} * 100 }}| ]]
 
    | DP  = {{ #expr: {{{2}}} * 2000 }}[[Resell price::{{ #expr: {{{2}}} * 2000 }}| ]]
 
    }}
 
  }}
 
}}
 

Revision as of 16:37, 27 September 2013

[[File:BAM-{{{1}}}.svg|link=File:BAM-{{{1}}}.svg |{{{1}}}|alt=|x25px]] {{{2}}}