This template is protected from editing.
Difference between revisions of "Template:Item price"
(move position of € symbol per talk page) |
(Added attribute "tooltips" to show/hide currency-symbol tooltips.) |
||
Line 1: | Line 1: | ||
− | {{#switch:{{uc:{{{1|{{{currency|}}}}}}}} | + | {{#ifeq:{{{tooltips|yes}}}|yes|<!-- |
+ | -->{{#switch:{{uc:{{{1|{{{currency|}}}}}}}} | ||
| USD = {{tooltip|$|United States dollars}}{{Item price/core|currency=USD|item={{{item|{{BASEPAGENAMEE}}}}}}} | | USD = {{tooltip|$|United States dollars}}{{Item price/core|currency=USD|item={{{item|{{BASEPAGENAMEE}}}}}}} | ||
| GBP = {{tooltip|£|Pound sterling}}{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAMEE}}}}}}} | | GBP = {{tooltip|£|Pound sterling}}{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAMEE}}}}}}} | ||
Line 11: | Line 12: | ||
-->}}{{#ifeq:{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}|-|NULL|<!-- | -->}}{{#ifeq:{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}|-|NULL|<!-- | ||
--> / {{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}{{tooltip|€|Euros}}<!-- | --> / {{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}{{tooltip|€|Euros}}<!-- | ||
− | -->}} | + | -->}}}}<!-- |
− | }}<noinclude>{{doc begin}} | + | -->|<!-- |
+ | -->{{#switch:{{uc:{{{1|{{{currency|}}}}}}}} | ||
+ | | USD = ${{Item price/core|currency=USD|item={{{item|{{BASEPAGENAMEE}}}}}}} | ||
+ | | GBP = £{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAMEE}}}}}}} | ||
+ | | EUR = {{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}€ | ||
+ | |||
+ | | ALL | ||
+ | | #default = {{#ifeq:{{Item price/core|currency=USD|item={{{item|{{BASEPAGENAMEE}}}}}}}|-|NULL|<!-- | ||
+ | -->${{Item price/core|currency=USD|item={{{item|{{BASEPAGENAMEE}}}}}}}<!-- | ||
+ | -->}}{{#ifeq:{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAMEE}}}}}}}|-|NULL|<!-- | ||
+ | --> / £{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAMEE}}}}}}}<!-- | ||
+ | -->}}{{#ifeq:{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}|-|NULL|<!-- | ||
+ | --> / {{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAMEE}}}}}}}€<!-- | ||
+ | -->}}}}<!-- | ||
+ | -->}}<noinclude>{{doc begin}} | ||
This is a template to display item prices. The prices themselves are defined in the template {{tl|Item price/core}}. This template acts as a container to ''display'' the item prices. | This is a template to display item prices. The prices themselves are defined in the template {{tl|Item price/core}}. This template acts as a container to ''display'' the item prices. | ||
Line 18: | Line 33: | ||
* {{tlx|item price|USD}} on the article [[Black Box]] generates: {{item price|item=Black_Box|USD}} | * {{tlx|item price|USD}} on the article [[Black Box]] generates: {{item price|item=Black_Box|USD}} | ||
* {{tlx|item price|all|3=item=Familiar_Fez}} generates: {{item price|item=Familiar_Fez|all}} | * {{tlx|item price|all|3=item=Familiar_Fez}} generates: {{item price|item=Familiar_Fez|all}} | ||
+ | * You can also remove the tooltips on the currency symbols: {{tlx|item price|all|3=item=Degreaser|4=tooltips=no}} generates: {{item price|all|item=Degreaser|tooltips=no}} | ||
[[Category:Templates|Item price]] | [[Category:Templates|Item price]] | ||
</noinclude> | </noinclude> |
Revision as of 11:56, 4 January 2011
$Template:Dictionary/price/item price / £Template:Dictionary/price/item price / Template:Dictionary/price/item price€
Documentation for Item price
This is a template to display item prices. The prices themselves are defined in the template {{Item price/core}}
. This template acts as a container to display the item prices.
Usage
{{item price|USD}}
on the article Black Box generates: $1.99{{item price|all|item=Familiar_Fez}}
generates:- You can also remove the tooltips on the currency symbols:
{{item price|all|item=Degreaser|tooltips=no}}
generates: