Jump to content

Template:Tprice: Difference between revisions

From Stardew Valley Wiki
imported>Margotbean
add data-sort-value
imported>Margotbean
No edit summary
Line 1: Line 1:
<includeonly>{{#if:{{{1|}}}
<includeonly>{{#if:{{{1|}}}
| [[File:Gold.png|18px|link=]]{{formatnum:
|<span style="display: none;">data-sort-value="{{{1|}}}"</span>[[File:Gold.png|18px|link=]]{{formatnum:
   {{#ifeq:{{{1|}}}|furniture
   {{#ifeq:{{{1|}}}|furniture
     | 250–2500
     | 250–2500
     |<span style="display: none;">data-sort-value="{{{1|}}}"</span>{{#expr:
     |{{#expr:
           {{#ifexpr:100>{{{1|}}}*3
           {{#ifexpr:100>{{{1|}}}*3
           | 100
           | 100

Revision as of 20:16, 21 May 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"100–1,000g

{{Tprice|225}}

data-sort-value="225"675–1,125g

{{Tprice|1000000}}

data-sort-value="1000000"3,000,000–5,000,000g

{{Tprice|furniture}}

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