This template is protected from editing.
Difference between revisions of "Template:Item price"
(merge from /sandbox: optimised some template calls, fix rubles' nbsp) |
m (Fix lang templates to avoid this template appearing as 'missing translations'.) |
||
(6 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
| {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | | {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | ||
| usd = <!-- | | usd = <!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
| ru = {{ns:0}} | | ru = {{ns:0}} | ||
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{ns:0}} | | en = {{ns:0}} | ||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
Line 13: | Line 13: | ||
| gbp = <!-- | | gbp = <!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
| ru = {{ns:0}} | | ru = {{ns:0}} | ||
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{ns:0}} | | en = {{ns:0}} | ||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
Line 29: | Line 29: | ||
| rub = <!-- | | rub = <!-- | ||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}| | + | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} |
− | }} | + | | brl = <!-- |
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | ||
+ | }} | ||
+ | |||
+ | | jpy = <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|Japanese Yen}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=jpy|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|Japanese Yen}}}} | ||
+ | }} | ||
+ | |||
+ | | krw = <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩ |{{common string|south korean won}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=krw|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩ |{{common string|south korean won}}}} | ||
+ | }} | ||
+ | |||
+ | | try = <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=try|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}} | ||
+ | }} | ||
+ | |||
+ | | cny = <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|chinese yuan}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=cny|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|chinese yuan}}}} | ||
+ | }} | ||
+ | |||
+ | | hkd = <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|HK$ |{{common string|hong kong dollar}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=hkd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|HK$ |{{common string|hong kong dollar}}}} | ||
+ | }} | ||
+ | |||
+ | | pln = <!-- | ||
+ | -->{{Item price/core|currency=pln|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|zł|{{common string|Złoty}}}}<!-- | ||
+ | -->}} | ||
| <!-- | | <!-- | ||
# All of the above neatly combined. | # All of the above neatly combined. | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
| ru = {{ns:0}} | | ru = {{ns:0}} | ||
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{ns:0}} | | en = {{ns:0}} | ||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
Line 46: | Line 115: | ||
--> / <!-- | --> / <!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
| ru = {{ns:0}} | | ru = {{ns:0}} | ||
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{lang | + | -->{{lang incomplete |
| en = {{ns:0}} | | en = {{ns:0}} | ||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
Line 62: | Line 131: | ||
--> / <!-- | --> / <!-- | ||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}| {{common string| | + | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}}<!-- |
+ | |||
+ | --> / <!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | ||
+ | | ru = {{ns:0}} | ||
+ | }}<!-- | ||
+ | -->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{lang incomplete | ||
+ | | en = {{ns:0}} | ||
+ | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | ||
+ | }}<!-- | ||
+ | |||
+ | --> / <!-- | ||
+ | -->{{Item price/core|currency=pln|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|zł|{{common string|Złoty}}}} | ||
}}<noinclude>{{doc begin}} | }}<noinclude>{{doc begin}} |
Latest revision as of 04:01, 12 February 2024
$Template:Dictionary/price/item price / £Template:Dictionary/price/item price / Template:Dictionary/price/item price€ / Template:Dictionary/price/item pricerub / R$ Template:Dictionary/price/item price / Template:Dictionary/price/item pricezł
Documentation for Item price
{{Item price}}
is used to format prices with{{tooltip}}
s and the proper currency symbols.{{Item price/core}}
is used to get the price directly.{{Dictionary/price}}
stores the actual price values. Edit them there.- To edit the translations for 'United States dollars', etc, please see
{{Dictionary/common strings}}
.
Usage
{{item price|currency=usd}}
on the article Black Box generates: $1.99{{item price|item=Familiar Fez}}
generates: $7.49 / £5.99 / 7.15€ / 695rub / R$ 37.99 / 30.95zł- You can also remove the tooltips on the currency symbols:
{{item price|item=Degreaser|tooltips=no}}
generates: $1.99 / £1.59 / 1.89€ / 185rub / R$ 9.99 / 8.25zł