Difference between revisions of "Template:Tprice/doc"

From Stardew Valley Wiki
Jump to navigation Jump to search
(usage)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
tprice is used to calculate the travelling cart price from the base price of an item and pass it to the [[template:price]].
+
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==
 
==Examples==
 
+
<pre>{{Tprice|2}}</pre>
<pre>{{tprice|40}}</pre>
+
{{Tprice|2}}
 
+
<pre>{{Tprice|225}}</pre>
{{tprice|40}}
+
{{Tprice|225}}
 
+
<pre>{{Tprice|1000000}}</pre>
<pre>{{tprice|furniture}}</pre>
+
{{Tprice|1000000}}
 
+
<pre>{{Tprice|furniture}}</pre>
{{tprice|furniture}}
+
{{Tprice|furniture}}
 
+
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
<pre>{{tprice|40-20000|math=false}}</pre>
 
 
 
{{tprice|40-20000|math=false}}
 

Latest revision as of 18:03, 17 June 2023

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="2"Gold.png100–1,000g

{{Tprice|225}}

data-sort-value="225"Gold.png675–1,125g

{{Tprice|1000000}}

data-sort-value="1000000"Gold.png3,000,000–5,000,000g

{{Tprice|furniture}}

data-sort-value="furniture"Gold.png250–2,500g