Actions

Template

JapanTax

From NEC Retro

Revision as of 11:47, 28 December 2021 by Black Squirrel (talk | contribs) (Created page with "{{#vardefine:priceonly|{{stripref|{{{1|}}}}}}}{{#vardefine:priceclean|{{#replace:{{#var:priceonly}}|,}}}}{{#switch:{{#var:priceonly}}|free={{{1|}}}|{{#switch:{{#sub:{{#var:pri...")
(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)
  • {{JapanTax|free|2008-07-07}} -> free

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