Template:Item price: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m (whoops)
mNo edit summary
 
(9 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{#switch:{{lc:{{{1|{{{currency|}}}}}}}}
{{#if:{{{1|}}}{{{currency|}}}
| usd = <!--  
| {{#switch:{{lc:{{{1|{{{currency|}}}}}}}}
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|United States dollars}}<!--  
| usd = <!--  
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}
   -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
    | 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}}}}
    }}


| gbp = <!--  
| gbp = <!--  
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|Pound sterling}}<!--  
   -->{{lang
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}
    | 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}}}}
    }}


| 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}}|€|{{common string|Euros}}}}
 
| rub = <!--
  -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}}
 
| brl = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$&nbsp;|{{common string|reais}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$&nbsp;|{{common string|reais}}}}
    }}
 
| jpy = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥&nbsp;|{{common string|Japanese Yen}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=jpy|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥&nbsp;|{{common string|Japanese Yen}}}}
    }}
 
| krw = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩&nbsp;|{{common string|south korean won}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=krw|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₩&nbsp;|{{common string|south korean won}}}}
    }}
 
| try = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=try|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|₺|{{common string|turkish lira}}}}
    }}
 
| cny = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥&nbsp;|{{common string|chinese yuan}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=cny|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|¥&nbsp;|{{common string|chinese yuan}}}}
    }}
 
| hkd = <!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|HK$&nbsp;|{{common string|hong kong dollar}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=hkd|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|HK$&nbsp;|{{common string|hong kong dollar}}}}
    }}
 
| pln = <!--
  -->{{Item price/core|currency=pln|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|zł|{{common string|Złoty}}}}<!--
  -->}}


| #default = <!--  
| <!--  
   # All of the above neatly combined.
   # All of the above neatly combined.
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|United States dollars}}<!--  
   -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}}
    | ru = {{ns:0}}
    }}<!--  
   -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
   -->{{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;<!--  
  -->&#32;/&#32;<!--  
   -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|Pound sterling}}<!--  
   -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}}
    | ru = {{ns:0}}
    }}<!--
   -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!--  
   -->{{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;<!--  
  -->&#32;/&#32;<!--  
   -->{{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}}|€|{{common string|Euros}}}}<!--
 
-->&#32;/&#32;<!--
  -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}}<!--
 
-->&#32;/&#32;<!--
  -->{{lang
    | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$&nbsp;|{{common string|reais}}}}
    | ru = {{ns:0}}
    }}<!--
  -->{{Item price/core|currency=brl|item={{{item|{{BASEPAGENAME}}}}}}}<!--
  -->{{lang
    | en = {{ns:0}}
    | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|R$&nbsp;|{{common string|reais}}}}
    }}


}}<noinclude>{{doc begin}}
}}<noinclude>{{doc begin}}
Line 29: Line 148:
* {{tl|Item price/core}} is used to get the price directly.
* {{tl|Item price/core}} is used to get the price directly.
* '''{{tl|Dictionary/price}}''' stores the actual price values. Edit them there.
* '''{{tl|Dictionary/price}}''' stores the actual price values. Edit them there.
* To edit the translations for 'United States dollars', etc, please see {{tl|Dictionary/common strings}}.


=== Usage ===
=== Usage ===
* {{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=currency=usd}} on the article [[Bot's Beret]] generates: {{item price|item=Bot's Beret|currency=usd}}
* {{tlx|item price|2=item=Bionic Beanie}} generates: {{item price|item=Bionic Beanie}}
* {{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=Mann Co. Cap|4=tooltips=no}} generates: {{item price|item=Mann Co. Cap|tooltips=no}}
* 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 15:23, 25 June 2024

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

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for Item price

Usage