Actions

Template

JapanTax

From Sonic Retro

Revision as of 17:16, 26 December 2018 by Hivebrain (talk | contribs) (Created page with "{{#vardefine:priceonly|{{stripref|{{{1|}}}}}}}{{#vardefine:priceclean|{{#replace:{{#var:priceonly}}|,}}}}{{#switch:{{#sub:{{#var:priceonly}}|-1}} | i={{#replace:{{{1|}}}|{{#va...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

{{JapanTax|PRICEi/PRICEe|DATE}}
  • {{JapanTax|1,620i|2017-07-07}} -> 1,500 (1,620)
  • {{JapanTax|1,500e|2017-07-07}} -> 1,500 (1,620)
  • {{JapanTax|2,800e|2008-07-07}} -> 2,800 (2,940)

Add "i" or "e" to the end of the price, if said price includes or excludes tax.