Template:Tprice: Difference between revisions
Appearance
imported>Vg-tal m better indentation |
imported>BryghtShadow Removing leading whitespace; changed indentation to 2-spaces. |
||
| Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{#if:{{{1|}}} | ||
{{#if:{{{1|}}}| | | {{price | ||
| {{#ifeq:{{{1|}}}|furniture | |||
| 250-2500 | |||
| {{#ifeq:{{{math|true}}}|false | |||
| {{{1|}}} | |||
| {{#expr: | |||
{{#ifexpr:100>{{{1|}}}*3 | |||
| 100 | |||
| {{{1|}}}*3 | |||
}} | |||
}}-{{#expr: | |||
{{#ifexpr:1000>{{{1|}}}*5 | |||
| 1000 | |||
| {{{1|}}}*5 | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} | |||
}} }} | }}</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | ||
}} | |||
</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> | |||
Revision as of 13:11, 14 October 2016
Tprice is used to calculate the traveling cart price from the base price of an item. This template also adds a gold coin icon and a language-appropriate symbol for gold.
Examples
{{Tprice|2}}
">
−900g
{{Tprice|225}}
">
−450g
{{Tprice|1000000}}
">
−2,000,000g
{{Tprice|furniture}}
">
−2,250g