Template:Item price: Difference between revisions
Jump to navigation
Jump to search
Matthew250 (talk | contribs) (Undo revision 183994 by KEMONO PANTSU (talk)) |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | {{#if:{{{1|}}}{{{currency|}}} | ||
| usd = <!-- | | {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{ | | usd = <!-- | ||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
}}}}<!-- | -->{{lang | ||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}} | | en = {{ns:0}} | ||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | |||
}} | |||
| gbp = <!-- | | gbp = <!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{ | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
}}}}<!-- | | en = {{ns:0}} | ||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
}} | |||
| eur = <!-- | | eur = <!-- | ||
-->{{Item price/core|currency=eur|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=eur|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|{{ | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|{{common string|Euros}}}} | ||
}}}} | |||
| rub = <!-- | | rub = <!-- | ||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | ||
| # | | brl = <!-- | ||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | |||
}} | |||
| jpy = <!-- | |||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|Japanese Yen}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=jpy|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|Japanese Yen}}}} | |||
}} | |||
| krw = <!-- | |||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩ |{{common string|south korean won}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=krw|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩ |{{common string|south korean won}}}} | |||
}} | |||
| try = <!-- | |||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=try|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}} | |||
}} | |||
| cny = <!-- | |||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|chinese yuan}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=cny|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥ |{{common string|chinese yuan}}}} | |||
}} | |||
| hkd = <!-- | |||
-->{{lang | |||
| 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 | |||
| 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. | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|United States dollars}}<!-- | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | |||
}}<!-- | |||
--> / <!-- | --> / <!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|Pound sterling}}<!-- | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | |||
}}<!-- | |||
--> / <!-- | --> / <!-- | ||
-->{{Item price/core|currency=eur|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=eur|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|Euros}}<!-- | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|{{common string|Euros}}}}<!-- | ||
--> / <!-- | --> / <!-- | ||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}}<!-- | ||
--> / <!-- | |||
-->{{lang | |||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | |||
| ru = {{ns:0}} | |||
}}<!-- | |||
-->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{lang | |||
| en = {{ns:0}} | |||
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$ |{{common string|reais}}}} | |||
}} | |||
}}<noinclude> | }}<noinclude>{{doc begin}} | ||
{{doc begin}} | |||
* {{tl|Item price}} is used to format prices with {{tl|tooltip}}s and the proper currency symbols. | * {{tl|Item price}} is used to format prices with {{tl|tooltip}}s and the proper currency symbols. | ||
* {{tl|Item price/core}} is used to get the price directly. | * {{tl|Item price/core}} is used to get the price directly. | ||
* '''{{tl|Dictionary/price}}''' stores the actual price values. Edit them there. | * '''{{tl|Dictionary/price}}''' stores the actual price values. Edit them there. | ||
* To edit the translations for 'United States dollars', etc, please see {{tl|Dictionary/common strings}}. | |||
=== Usage === | === Usage === |
Latest revision as of 15:23, 25 June 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
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
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 Bot's Beret generates: $1.99
- {{item price|item=Bionic Beanie}} generates: $1.99 / £1.59 / 1.49€ / 60rub / R$ 3.38
- You can also remove the tooltips on the currency symbols: {{item price|item=Automaton's Tophat|tooltips=no}} generates: Template:11.99 / Template:11.59 / 1.49Template:1 / 60Template:1 / Template:13.38