Template:Item price: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | usd = <!-- -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|United States dollars}}<!-- -->{{Item price/core|currency=usd|item={...") |
Matthew250 (talk | contribs) (Undo revision 183994 by KEMONO PANTSU (talk)) |
||
(9 intermediate revisions by 7 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | ||
| usd = <!-- | | usd = <!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|United States dollars}}<!-- | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{lang | ||
| en = United States dollars | |||
| fr = Dollars Américain | |||
| fi = Yhdysvaltain dollaria | |||
| pl = Dolarów amerykańskich | |||
| ru = Доллары США | |||
}}}}<!-- | |||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}} | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}} | ||
| gbp = <!-- | | gbp = <!-- | ||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|Pound sterling}}<!-- | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{lang | ||
| en = Pound sterling | |||
| fr = Livres Sterling | |||
| fi = Englannin puntaa | |||
| pl = Funtów szterlingów | |||
| ru = Фунты стерлингов | |||
}}}}<!-- | |||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}} | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}} | ||
| eur = <!-- | | eur = <!-- | ||
-->{{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}}|€|{{lang | ||
| en = Euros | |||
| fr = Euros | |||
| fi = Euroa | |||
| pl = Euro | |||
| ru = Евро | |||
}}}} | |||
| rub = <!-- | |||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | |||
| #default = <!-- | | #default = <!-- | ||
Line 23: | Line 45: | ||
--> / <!-- | --> / <!-- | ||
-->{{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}}|€|Euros}}<!-- | ||
--> / <!-- | |||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | |||
-->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | |||
}}<noinclude>{{doc begin}} | }}<noinclude>{{translation switching|en, fi, fr, pl, ru}} | ||
{{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. | ||
Line 31: | Line 58: | ||
=== Usage === | === Usage === | ||
* {{tlx|item price|2=currency=usd}} on the article [[Bot's Beret]] generates: {{item price|item= | * {{tlx|item price|2=currency=usd}} on the article [[Bot's Beret]] generates: {{item price|item=Bot's Beret|currency=usd}} | ||
* {{tlx|item price|2=item= | * {{tlx|item price|2=item=Bionic Beanie}} generates: {{item price|item=Bionic Beanie}} | ||
* You can also remove the tooltips on the currency symbols: {{tlx|item price|3=item= | * You can also remove the tooltips on the currency symbols: {{tlx|item price|3=item=Automaton's Tophat|4=tooltips=no}} generates: {{item price|item=Automaton's Tophat|tooltips=no}} | ||
[[Category:Templates|Item price]] | [[Category:Templates|Item price]] | ||
</noinclude> | </noinclude> |
Latest revision as of 04:15, 13 June 2023
$Template:Dictionary/price/item price / £Template:Dictionary/price/item price / Template:Dictionary/price/item price€ / Template:Dictionary/price/item price rub
This template uses translation switching. The correct language will be displayed automatically. Localized versions of this template (e.g. Template:Item price/ru) are not necessary. Add your translations directly to this template by editing it. Supported languages for this template: en, fi, fr, pl, ru (add) |
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.
Usage
- {{item price|currency=usd}} on the article Bot's Beret generates: $2.49
- {{item price|item=Bionic Beanie}} generates: $2.49 / £1.99 / 2.49€ / 74 rub
- You can also remove the tooltips on the currency symbols: {{item price|item=Automaton's Tophat|tooltips=no}} generates: Template:12.49 / Template:11.99 / 2.49Template:1 / 74Template:1