Difference between revisions of "Currency"
From Sonic Retro
m |
BSonirachi (talk | contribs) m (Text replacement - "Category:Sonic Retro templates" to "Category:Templates") |
||
(2 intermediate revisions by one other user not shown) | |||
Line 21: | Line 21: | ||
| RU=RUB | | RU=RUB | ||
| KW=KD | | KW=KD | ||
− | }}}}{{#ifeq:{{{3}}}|vc|{{#vardefine:prefix|}}{{#vardefine:suffix|pts}}}}{{#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. | ||
Line 31: | Line 31: | ||
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: | + | [[Category:Templates]]</noinclude> |
Latest revision as of 19:17, 1 January 2022
{{{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.