Difference between revisions of "Price"
From Sega Retro
m (Text replacement - "Category:Sega Retro templates" to "Category:Templates") |
|||
(28 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {{clearvar|prefix|suffix|quantity}}{{#vardefine:pricenorefs|{{stripref|{{{1|}}}}}}} | + | {{clearvar|prefix|suffix|quantity}}<span style="display:none;">{{{packageprice|}}}<!--this span fixes a bug. No idea why --></span>{{#vardefine:pricenorefs|{{#replace:{{stripref|{{{1|}}}}}|×|x}}}}{{#vardefine:quantity|{{#explode:{{#var:pricenorefs}}|x|1}}}}{{#vardefine:priceonly|{{#explode:{{#var:pricenorefs}}|x|0}}}}{{#switch:{{#var:priceonly}} |
− | |AT|BE|DE|ES|FI|FR|GR|IE|IT|LU|NL|PT={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2002-01-01=EU}}|{{uc:{{{region|}}}}}}}}}{{#vardefine:prefix|{{#switch:{{#var:pricereg}} | + | |free|FREE={{#vardefine:priceout|FREE}} |
+ | |sub|SUB={{#vardefine:priceout|SUB}} | ||
+ | |pre|PRE={{#vardefine:priceout|{{rolloverText|PRE|Pre-order bonus}}{{#if:{{{packageprice|}}}|{{fn|Pre-order bonus. Full package price: {{{packageprice|}}}.}}|}}}} | ||
+ | |pack|PACK={{#vardefine:priceout|{{rolloverText|PACK-IN|Package extra}}{{#if:{{{packageprice|}}}|{{fn|Bundled with package as a free extra. Full package price: {{{packageprice|}}}.}}|}}}} | ||
+ | |comp|comp={{#vardefine:priceout|{{rolloverText|COMP|Competition prize}}}} | ||
+ | |{{#vardefine:pricereg|{{ | ||
+ | #switch:{{uc:{{{region|}}}}} | ||
+ | |AT|BE|DE|ES|FI|FR|GR|IE|IT|LU|NL|PT={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2002-01-01=EU}} | ||
+ | |SI={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2007-01-01=EU}} | ||
+ | |CY|MT={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2008-01-01=EU}} | ||
+ | |SK={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2009-01-01=EU}} | ||
+ | |EE={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2011-01-01=EU}} | ||
+ | |LV={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2014-01-01=EU}} | ||
+ | |LT={{dateswitch|date={{{date|}}}|{{uc:{{{region|}}}}}|2015-01-01=EU}} | ||
+ | |{{uc:{{{region|}}}}}}}}}{{ | ||
+ | #vardefine:prefix|{{#switch:{{#var:pricereg}} | ||
| US | | US | ||
| AU | | AU | ||
+ | | AR | ||
| CA | | CA | ||
+ | | CL | ||
+ | | CO | ||
| NZ | | NZ | ||
− | | MX=$ | + | | MX |
+ | | SG=$ | ||
+ | | CY | ||
+ | | IE | ||
| UK=£ | | UK=£ | ||
| EU=€ | | EU=€ | ||
| DE=DM | | DE=DM | ||
+ | | CN | ||
| JP=¥ | | JP=¥ | ||
| HK=HK$ | | HK=HK$ | ||
| TW=NT$ | | TW=NT$ | ||
+ | | AT=S | ||
| BR={{dateswitch|date={{{date|}}}|R$|1993-08-01=CR$|1994-06-30=R$}} | | BR={{dateswitch|date={{{date|}}}|R$|1993-08-01=CR$|1994-06-30=R$}} | ||
+ | | CH=fr. | ||
| NL=ƒ | | NL=ƒ | ||
+ | | ID=Rp | ||
+ | | IL=₪ | ||
+ | | IN=₹ | ||
| KR=₩ | | KR=₩ | ||
− | | | + | | LT=Lt |
+ | | LV=Ls | ||
+ | | MY=RM | ||
+ | | SI={{dateswitch|date={{{date|}}}||2007-01-01=€}} | ||
| TH=฿ | | TH=฿ | ||
− | | | + | | UA=₴ |
+ | | ZA=R | ||
}}}}{{#vardefine:suffix|{{#switch:{{#var:pricereg}} | }}}}{{#vardefine:suffix|{{#switch:{{#var:pricereg}} | ||
− | | FR=F | + | | AE=د.إ |
+ | | BE= fr. | ||
+ | | FR | ||
+ | | LU=F | ||
| ES=Ptas | | ES=Ptas | ||
+ | | HR= kn | ||
| IT=£ | | IT=£ | ||
− | | | + | | DK |
+ | | EE | ||
+ | | IS | ||
| NO | | NO | ||
− | | | + | | SE= kr |
| FI= mk | | FI= mk | ||
− | | RU= | + | | RU={{dateswitch|date={{{date|}}}|руб|2013-12-11=₽}} |
| KW=KD | | KW=KD | ||
− | | PT= | + | | PT=$ |
| GR=₯ | | GR=₯ | ||
− | | TR=₺ | + | | TR={{dateswitch|date={{{date|}}}| TL|2012-03-01=₺}} |
| CZ= Kč | | CZ= Kč | ||
− | }}}}{{#if:{{{currency|}}}|{{#vardefine:prefix|{{#explode:{{{currency|}}}|*|0}}}}{{#vardefine:suffix|{{#explode:{{{currency|}}}|*|1}}}}}}{{#vardefine:priceout|{{#switch:{{#var:pricereg}}|JP={{JapanTax|{{#var:priceonly}}|{{{date|}}}}}|{{#var:priceonly}}}}}}}}{{# | + | | PL=zł |
+ | | HU= Ft | ||
+ | | RO=L | ||
+ | | RS | ||
+ | | YU=дин | ||
+ | | SI= tolarjev | ||
+ | | SK= Sk | ||
+ | | IR | ||
+ | | SA=﷼ | ||
+ | }}}}{{#if:{{{currency|}}}|{{#vardefine:prefix|{{#explode:{{{currency|}}}|*|0}}}}{{#vardefine:suffix|{{#explode:{{{currency|}}}|*|1}}}}}}{{#vardefine:priceout|{{#switch:{{#var:pricereg}}|JP={{JapanTax|{{#var:priceonly}}|{{{date|}}}}}|{{#var:priceonly}}}}}}}}{{#if:{{#var:priceout}}|{{#var:prefix}}{{#var:priceout}}{{#var:suffix}}{{#if:{{#var:quantity}}| ×{{#var:quantity}}}}}}<span style="font-size:0px">{{{1|}}}</span>{{clearvar|prefix|suffix|quantity}}<noinclude> | ||
Consolidating all the currency-based templates. | Consolidating all the currency-based templates. | ||
Line 42: | Line 88: | ||
* <nowiki>{{price|3.99|region=fr|date=1990-01-01}}</nowiki> -> {{price|3.99|region=fr|date=1990-01-01}} | * <nowiki>{{price|3.99|region=fr|date=1990-01-01}}</nowiki> -> {{price|3.99|region=fr|date=1990-01-01}} | ||
* <nowiki>{{price|free}}</nowiki> -> {{price|free}} | * <nowiki>{{price|free}}</nowiki> -> {{price|free}} | ||
+ | * <nowiki>{{price|sub}}</nowiki> -> {{price|sub}} | ||
+ | * <nowiki>{{price|pre}}</nowiki> -> {{price|pre}} | ||
+ | * <nowiki>{{price|comp}}</nowiki> -> {{price|comp}} | ||
* <nowiki>{{price|2800e|region=JP|date=2008-01-01}}</nowiki> -> {{price|2800e|region=JP|date=2008-01-01}} | * <nowiki>{{price|2800e|region=JP|date=2008-01-01}}</nowiki> -> {{price|2800e|region=JP|date=2008-01-01}} | ||
* <nowiki>{{price|1620i|region=JP|date=2017-01-01}}</nowiki> -> {{price|1620i|region=JP|date=2017-01-01}} | * <nowiki>{{price|1620i|region=JP|date=2017-01-01}}</nowiki> -> {{price|1620i|region=JP|date=2017-01-01}} | ||
Line 48: | Line 97: | ||
* <nowiki>{{price|1500i ×2|region=JP|date=2017-01-01}}</nowiki> -> {{price|1500i ×2|region=JP|date=2017-01-01}} | * <nowiki>{{price|1500i ×2|region=JP|date=2017-01-01}}</nowiki> -> {{price|1500i ×2|region=JP|date=2017-01-01}} | ||
* <nowiki>{{price|200 x3|region=US|currency=*MSP}}</nowiki> -> {{price|200 x3|region=US|currency=*MSP}} | * <nowiki>{{price|200 x3|region=US|currency=*MSP}}</nowiki> -> {{price|200 x3|region=US|currency=*MSP}} | ||
+ | * <nowiki>{{price|1234|region=LT|date=1996}}</nowiki> -> {{price|1234|region=LT|date=1996}} | ||
+ | * <nowiki>{{price|1234|region=LT|date=2006}}</nowiki> -> {{price|1234|region=LT|date=2006}} | ||
+ | * <nowiki>{{price|1234|region=LT|date=2016}}</nowiki> -> {{price|1234|region=LT|date=2016}} | ||
+ | * <nowiki>{{price|pre|region=JP|date=2016|packageprice=5,000}}</nowiki> -> {{price|pre|region=JP|date=2016|packageprice=5,000}} | ||
+ | * <nowiki>{{price|pack|region=JP|date=2016|packageprice=5,000}}</nowiki> -> {{price|pack|region=JP|date=2016|packageprice=5,000}} | ||
− | [[Category: | + | {{Footnotes}} |
+ | [[Category:Templates]]</noinclude> |
Revision as of 14:26, 1 January 2022
Consolidating all the currency-based templates.
Usage
{{price|PRICE|region=|date=}}
- {{price|1.99|region=US}} -> $1.991.99
- {{price|2.99|region=FR|date=2011-01-01}} -> €2.992.99
- {{price|3.99|region=fr|date=1990-01-01}} -> 3.99F3.99
- {{price|free}} -> FREEfree
- {{price|sub}} -> SUBsub
- {{price|pre}} -> PREpre
- {{price|comp}} -> COMPcomp
- {{price|2800e|region=JP|date=2008-01-01}} -> ¥2,800 (2,940)2800e
- {{price|1620i|region=JP|date=2017-01-01}} -> ¥1,500 (1,620)1620i
- {{price|100|region=US|currency=*MSP}} -> 100MSP100
- {{price|1500i x2|region=JP|date=2017-01-01}} -> ¥1,389 (1,500) ×21500i x2
- {{price|1500i ×2|region=JP|date=2017-01-01}} -> ¥1,389 (1,500) ×21500i ×2
- {{price|200 x3|region=US|currency=*MSP}} -> 200MSP ×3200 x3
- {{price|1234|region=LT|date=1996}} -> Lt 12341234
- {{price|1234|region=LT|date=2006}} -> Lt 12341234
- {{price|1234|region=LT|date=2016}} -> €12341234
- {{price|pre|region=JP|date=2016|packageprice=5,000}} -> PRE[fn 1]pre
- {{price|pack|region=JP|date=2016|packageprice=5,000}} -> PACK-IN[fn 2]pack