Difference between revisions of "Currency"
From Sega Retro
m |
|||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#vardefine:prefix|{{#switch: {{{1}}} | {{#vardefine:prefix|{{#switch: {{{1}}} | ||
| US | | US | ||
+ | | AR | ||
| AU | | AU | ||
| CA | | CA | ||
+ | | CL | ||
+ | | CO | ||
+ | | NZ | ||
| MX=$ | | MX=$ | ||
| UK=£ | | UK=£ | ||
| EU=€ | | EU=€ | ||
| DE=DM | | DE=DM | ||
+ | | CN | ||
| JP=¥ | | JP=¥ | ||
| TW=NT$ | | TW=NT$ | ||
Line 12: | Line 17: | ||
| NL=ƒ | | NL=ƒ | ||
| KR=₩ | | KR=₩ | ||
+ | | IL=₪ | ||
| IN=₹ | | IN=₹ | ||
| TH=฿ | | TH=฿ | ||
+ | | MY=RM | ||
}}}}{{#vardefine:suffix|{{#switch: {{{1}}} | }}}}{{#vardefine:suffix|{{#switch: {{{1}}} | ||
| FR=F | | FR=F | ||
| ES=Ptas | | ES=Ptas | ||
| IT=£ | | IT=£ | ||
− | | SE=kr | + | | SE |
+ | | NO | ||
+ | | DK= kr | ||
+ | | FI= mk | ||
| RU=RUB | | RU=RUB | ||
| KW=KD | | KW=KD | ||
− | }}}}{{#switch:{{{2| | + | | PT=PTE$ |
+ | | GR=₯ | ||
+ | | TR=₺ | ||
+ | | CZ= Kč | ||
+ | | PL=PLN | ||
+ | | SI= tolarjev | ||
+ | | UA=₴ | ||
+ | | HU= Ft | ||
+ | | BY=BYN | ||
+ | }}}}{{#switch:{{#sub:{{{2}}}|0|4}} | ||
| free=FREE | | free=FREE | ||
| pack=PACK-IN | | pack=PACK-IN | ||
Line 31: | Line 50: | ||
Unfortunately it seems switch statements and tables don't mix well. I can't be bothered to fight it right now - feel free to jump in. | Unfortunately it seems switch statements and tables don't mix well. I can't be bothered to fight it right now - feel free to jump in. | ||
− | [[Category: | + | ==Usage== |
+ | <pre>{{currency|XX|PRICE}}</pre> | ||
+ | [[Category:Templates]]</noinclude> |
Latest revision as of 11:53, 2 June 2023
{{{2}}}
A template to handle RRPs in a more automated way. Also to handle games sold for free or as console pack-ins.
Unfortunately it seems switch statements and tables don't mix well. I can't be bothered to fight it right now - feel free to jump in.
Usage
{{currency|XX|PRICE}}