Difference between revisions of "Template:Tprice"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (better indentation)
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}|{{price|{{#ifeq:{{{1|}}}|furniture|
+
<includeonly>
250-2500
+
{{#if:{{{1|}}}|
|
+
    {{price|{{#ifeq:{{{1|}}}|furniture|
{{#ifeq:{{{math|}}}|false|{{{1|}}}|{{#expr:
+
            250-2500
    {{#ifexpr:100>{{{1|}}}*3|
+
            |
        100
+
            {{#ifeq:{{{math|}}}|false|{{{1|}}}|
        |
+
                {{#expr:
        {{{1|}}}*3  
+
                    {{#ifexpr:100>{{{1|}}}*3|
    }}
+
                        100
    }}-{{#expr:
+
                        |
    {{#ifexpr:1000>{{{1|}}}*5|
+
                        {{{1|}}}*3  
        1000
+
                    }}
        |
+
                }}-{{#expr:
        {{{1|}}}*5  
+
                    {{#ifexpr:1000>{{{1|}}}*5|
    }} }} }} }} }} }}
+
                        1000
 +
                        |
 +
                        {{{1|}}}*5  
 +
                    }}
 +
                }}
 +
            }}
 +
    }} }}
 +
}}
 
</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 
</includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>

Revision as of 20:03, 10 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}}

data-sort-value="100-1000 ">Gold.png-900g

{{Tprice|225}}

data-sort-value="675-1125 ">Gold.png-450g

{{Tprice|1000000}}

data-sort-value="3000000-5000000 ">Gold.png-2,000,000g

{{Tprice|furniture}}

data-sort-value="250-2500 ">Gold.png-2,250g