This template is protected from editing.
Difference between revisions of "Template:Item price"
(gg pilk) |
|||
Line 1: | Line 1: | ||
− | {{#switch:{{uc:{{{1|}}}}} | + | {{#switch:{{uc:{{{1|{{{currency|}}}}}}}} |
− | | | + | | USD = ${{Item price/core|currency=USD|item={{{item|{{BASEPAGENAME}}}}}}} |
− | + | | GBP = £{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAME}}}}}}} | |
− | |GBP=£{{Item price/core|currency=GBP|item={{BASEPAGENAME}}}} | + | | EUR = €{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAME}}}}}}} |
− | |EUR=€{{Item price/core|currency=EUR|item={{BASEPAGENAME}}}} | + | |
− | }} | + | | ALL |
+ | | #default = {{#ifeq:{{Item price/core|currency=USD|item={{{item|{{BASEPAGENAME}}}}}}}|-| |<!-- | ||
+ | -->${{Item price/core|currency=USD|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->}}{{#ifeq:{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAME}}}}}}}|-| |<!-- | ||
+ | --> / £{{Item price/core|currency=GBP|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->}}{{#ifeq:{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAME}}}}}}}|-| |<!-- | ||
+ | --> / €{{Item price/core|currency=EUR|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
+ | -->}} | ||
+ | }}<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. | ||
+ | |||
+ | === Usage === | ||
+ | * {{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}} | ||
+ | |||
+ | [[Category:Templates|Item price]] | ||
+ | </noinclude> |
Revision as of 23:51, 2 October 2010
$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: