Difference between revisions of "Currency"

From Sega Retro

(One intermediate revision by one other user not shown)
Line 1: Line 1:
<span style="display:none;">
 
 
{{#vardefine:prefix|{{#switch: {{{1}}}
 
{{#vardefine:prefix|{{#switch: {{{1}}}
 
| US
 
| US
Line 15: Line 14:
 
| IN=₹
 
| IN=₹
 
| TH=฿
 
| TH=฿
}}}}
+
}}}}{{#vardefine:suffix|{{#switch: {{{1}}}
{{#vardefine:suffix|{{#switch: {{{1}}}
 
 
| FR=F
 
| FR=F
 
| ES=Ptas
 
| ES=Ptas
Line 23: Line 21:
 
| RU=RUB
 
| RU=RUB
 
| KW=KD
 
| KW=KD
}}}}</span>{{#switch: {{{2}}}
+
}}}}{{#switch: {{{2}}}
 
| free=FREE
 
| free=FREE
 
| pack=PACK-IN
 
| pack=PACK-IN
| #default={{#var:prefix}}{{#ifeq:{{{2}}}||?|{{{2}}}}}{{#var:suffix}}
+
| #default={{#var:prefix}}{{#ifeq:{{{2}}}| |?|{{{2}}}}}{{#var:suffix}}
 
}}<noinclude>
 
}}<noinclude>
  

Revision as of 15:03, 19 July 2016

{{{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.