Difference between revisions of "Template:Item price/sandbox"
(working onit) |
(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.) |
||
Line 1: | Line 1: | ||
− | {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} | + | {{#if:{{{1|}}}{{{currency|}}} |
− | | usd = <!-- | + | | {{#switch:{{lc:{{{1|{{{currency|}}}}}}}} |
+ | | usd = <!-- | ||
-->{{lang | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
− | | ru = {{ | + | | ru = {{ns:0}} |
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | -->{{lang | ||
− | | en = {{ | + | | en = {{ns:0}} |
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
}} | }} | ||
− | | gbp = <!-- | + | | gbp = <!-- |
-->{{lang | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
− | | ru = {{ | + | | ru = {{ns:0}} |
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | -->{{lang | ||
− | | en = {{ | + | | en = {{ns:0}} |
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | 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}}|€|{{common string|Euros}}}} | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|€|{{common string|Euros}}}} | ||
− | | rub = <!-- | + | | rub = <!-- |
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | + | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}| {{common string|rubles}}|{{common string|rubles-tooltip}}}} |
− | | | + | }} |
+ | |||
+ | | <!-- | ||
# All of the above neatly combined. | # All of the above neatly combined. | ||
-->{{lang | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
− | | ru = {{ | + | | ru = {{ns:0}} |
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=usd|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | -->{{lang | ||
− | | en = {{ | + | | en = {{ns:0}} |
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|$|{{common string|United States dollars}}}} | ||
}}<!-- | }}<!-- | ||
Line 45: | Line 48: | ||
-->{{lang | -->{{lang | ||
| en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | en = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
− | | ru = {{ | + | | ru = {{ns:0}} |
}}<!-- | }}<!-- | ||
-->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=gbp|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
-->{{lang | -->{{lang | ||
− | | en = {{ | + | | en = {{ns:0}} |
| ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | | ru = {{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|£|{{common string|Pound sterling}}}} | ||
}}<!-- | }}<!-- | ||
Line 59: | Line 62: | ||
--> / <!-- | --> / <!-- | ||
-->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | -->{{Item price/core|currency=rub|item={{{item|{{BASEPAGENAME}}}}}}}<!-- | ||
− | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}|{{common string|rubles}}|{{common string|rubles-tooltip}}}} | + | -->{{{{#ifeq:{{{tooltips|yes}}}|yes|tooltip|1}}| {{common string|rubles}}|{{common string|rubles-tooltip}}}} |
}} | }} |