Difference between revisions of "Template:Item price/sandbox"

From Team Fortress Wiki
Jump to: navigation, search
(add #if: to check if 1st param is used, if it isn't (99% of pages mebe?) don't progress with switch, just put all currencies. also used ns:0 instead of void for 1 less template call. fix ruble space.)
(teest)
Line 35: Line 35:
 
| <!--  
 
| <!--  
 
   # All of the above neatly combined.
 
   # All of the above neatly combined.
   -->{{lang
+
   # Edit {{item price/fmt}} to change slashes, spacing, etc.
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
+
   -->{{dictionary/price/{{{item|{{BASEPAGENAME}}}}}|_all_|tt={{{tooltips|yes}}}}}
    | ru = {{ns:0}}
 
    }}<!--
 
  -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!--
 
  -->{{lang
 
    | en = {{ns:0}}
 
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
 
    }}<!--
 
 
 
-->&#32;/&#32;<!--
 
  -->{{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}}
 
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
 
    }}<!--
 
 
 
-->&#32;/&#32;<!--
 
  -->{{Item price/core|currency=eur|item={{{item|{{BASEPAGENAME}}}}}}}<!--
 
  -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|{{common string|Euros}}}}<!--
 
 
 
-->&#32;/&#32;<!--
 
  -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!--
 
  -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|&nbsp;{{common string|rubles}}|{{common string|rubles-tooltip}}}}
 
  
 
}}
 
}}

Revision as of 07:33, 14 November 2011