Difference between revisions of "Template:Tprice"

From Stardew Valley Wiki
Jump to navigation Jump to search
m (fix trailing whitespace)
(I completely broke this template when I edited Template:price. I have half-fixed it with this change.)
Line 1: Line 1:
 
<includeonly>{{#if:{{{1|}}}
 
<includeonly>{{#if:{{{1|}}}
| {{price
+
| [[File:Gold.png|24px|alt=Coin Icon|link=]] {{formatnum:
  | {{#ifeq:{{{1|}}}|furniture
+
  {{#ifeq:{{{1|}}}|furniture
 
     | 250-2500
 
     | 250-2500
 
     | {{#ifeq:{{{math|true}}}|false
 
     | {{#ifeq:{{{math|true}}}|false
Line 18: Line 18:
 
       }}
 
       }}
 
     }}
 
     }}
   }}
+
   }}g
 
}}</includeonly><noinclude>
 
}}</includeonly><noinclude>
 
{{{{FULLPAGENAME}}/doc}}
 
{{{{FULLPAGENAME}}/doc}}
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Revision as of 07:19, 9 January 2017

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}}

Coin Icon 100-1,000g

{{Tprice|225}}

Coin Icon 675-1,125g

{{Tprice|1000000}}

Coin Icon 3,000,000-5,000,000g

{{Tprice|furniture}}

Coin Icon 250-2,500g