This template is protected from editing.

Difference between revisions of "Template:Item price"

From Team Fortress Wiki
Jump to: navigation, search
(Use dictionary to translate currency names.)
(currency symbols £, $ now show up after price on Russian articles)
Line 1: Line 1:
 
{{#switch:{{lc:{{{1|{{{currency|}}}}}}}}
 
{{#switch:{{lc:{{{1|{{{currency|}}}}}}}}
 
| usd = <!--  
 
| usd = <!--  
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}<!--  
+
   -->{{lang
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}
+
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
 +
    }}<!--  
 +
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!--
 +
  -->{{lang
 +
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
 +
    }}
  
 
| gbp = <!--  
 
| gbp = <!--  
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}<!--  
+
   -->{{lang
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}
+
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
 +
    }}<!--  
 +
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!--
 +
  -->{{lang
 +
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
 +
    }}
  
 
| eur = <!--  
 
| eur = <!--  
Line 14: Line 24:
 
| #default = <!--  
 
| #default = <!--  
 
   # All of the above neatly combined.
 
   # All of the above neatly combined.
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}<!--  
+
   -->{{lang
 +
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
 +
    }}<!--  
 
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
 
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
 +
  -->{{lang
 +
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
 +
    }}<!--
  
 
  -->&#32;/&#32;<!--  
 
  -->&#32;/&#32;<!--  
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}<!--  
+
   -->{{lang
 +
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
 +
    }}<!--
 
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
 
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
 +
  -->{{lang
 +
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
 +
    }}<!--
  
 
  -->&#32;/&#32;<!--  
 
  -->&#32;/&#32;<!--  

Revision as of 13:14, 11 September 2011

$Template:Dictionary/price/item price / £Template:Dictionary/price/item price / Template:Dictionary/price/item price

Documentation for Item price

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.95
  • 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ł