Jump to content

Template:Tprice/doc: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
No edit summary
imported>Margotbean
No edit summary
Line 1: Line 1:
tprice is used to calculate the traveling 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 and pass it to [[:Template:Price]].


==Examples==
==Examples==
<pre>{{Tprice|40}}</pre>


<pre>{{tprice|40}}</pre>
{{Tprice|40}}


{{tprice|40}}
<pre>{{Tprice|furniture}}</pre>


<pre>{{tprice|furniture}}</pre>
{{Tprice|furniture}}


{{tprice|furniture}}
<pre>{{Tprice|40-20000|math=false}}</pre>


<pre>{{tprice|40-20000|math=false}}</pre>
{{Tprice|40-20000|math=false}}
 
<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude>
{{tprice|40-20000|math=false}}
<noinclude>[[Category:Template documentation]]</noinclude>
<includeonly>{{Addlanglinks}}</includeonly>

Revision as of 21:26, 8 January 2023

Tprice is used to calculate the traveling cart price from the base price of an item and pass it to Template:Price.

Examples

{{Tprice|40}}

data-sort-value="40"120–1,000g

{{Tprice|furniture}}

data-sort-value="furniture"250–2,500g

{{Tprice|40-20000|math=false}}

data-sort-value="40-20000"Lua error in Module:Tcartprice at line 25: attempt to perform arithmetic on a nil value.