Actions

Template

Difference between revisions of "Currency"

From Sonic Retro

(Created page with "{{#vardefine:prefix|{{#switch: {{{1}}} | US | AU | CA | MX=$ | UK=£ | EU=€ | DE=DM  | JP=¥ | TW=NT$ | BR=R$ | NL=ƒ | KR=₩ | IN=₹ | TH=฿ }}}}{{#vardefine:suffix...")
 
 
(3 intermediate revisions by the same user not shown)
Line 21: Line 21:
 
| RU=RUB
 
| RU=RUB
 
| KW=KD
 
| KW=KD
}}}}{{#switch: {{{2}}}
+
}}}}{{#ifeq:{{{3}}}|vc|{{#vardefine:prefix|}}{{#vardefine:suffix|pts}}}}{{#ifeq:{{{3}}}{{{5}}}|360d|{{#ifexpr:{{age|{{{4}}}|2013-08-25}}>-1|{{#vardefine:prefix|}}{{#vardefine:suffix|[[wikipedia:Microsoft Points|MSP]]}}}}}}{{#ifeq:{{{3}}}|xbla|{{#ifexpr:{{age|{{{4}}}|2013-08-25}}>-1|{{#vardefine:prefix|}}{{#vardefine:suffix|[[wikipedia:Microsoft Points|MSP]]}}}}}}{{#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><!-- Params: region, price, console, date, type -->
  
 
A template to handle RRPs in a more automated way. Also to handle games sold for free or as console pack-ins.
 
A template to handle RRPs in a more automated way. Also to handle games sold for free or as console pack-ins.

Latest revision as of 21:02, 18 April 2017

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