Template:Qualityprice

From Stardew Valley Wiki
Revision as of 21:08, 10 March 2016 by Alexanderpas (talk | contribs) (simplified template a lot by using other templates.)
Jump to navigation Jump to search

Description

This template displays prices for items of specified qualities, formatted appropriately for the language where they appear. The image of the item is included (with any quality stars) instead of the gold icon. The size of the image is always 24px.

Parameters

Parameter Notes
First (unnamed) parameter Name of image (minus ".png")
Second (unnamed) parameter Normal/base sell price of item (can be found in ObjectInformation.xnb)
or
Normal/base sell price of item used to make Artisan Good (see examples below)
Note: also accepts non-numbers such as "3x base fruit price" without throwing an error
quality Single quality to display.
Defaults to all qualities (normal, silver, gold, iridium) if omitted.
Items that exist in normal quality only do not have to specify quality=normal (i.e., Cave Carrot, Ginger, Green Tea, Honey, Jelly, Juice, Oil, Pickles, Qi Fruit, and Tea Leaves)
Note: Other items may be added in the future. In the meantime, specifying quality=normal will work.
hide Qualities to hide
(e.g., hide=silver,gold)
pm Profession modifier
Tiller gives a 10% bonus, so specify pm=1.1
Angler gives a 50% bonus, so specify pm=1.5
etc.
dsv data-sort-value
Set to false if the quality price(s) are displayed in a non-sortable structure (like an infobox)
Default value is true (the entire parameter can be omitted if a data-sort-value is desired).

Examples

Template Call Result
{{Qualityprice|Melon|250}}
Melon.png data-sort-value="250">Gold.png250g
Melon.png
Silver Quality Icon.png
data-sort-value="312">Gold.png312g
Melon.png
Gold Quality Icon.png
data-sort-value="375">Gold.png375g


{{Qualityprice|Parsnip|35|pm=1.1}}
Parsnip.png data-sort-value="35">Gold.png35g
Parsnip.png
Silver Quality Icon.png
data-sort-value="43">Gold.png43g
Parsnip.png
Gold Quality Icon.png
data-sort-value="52">Gold.png52g


{{Qualityprice|Ginger|60}}
Ginger.png data-sort-value="60">Gold.png60g
Ginger.png
Silver Quality Icon.png
data-sort-value="75">Gold.png75g
Ginger.png
Gold Quality Icon.png
data-sort-value="90">Gold.png90g


{{Qualityprice|Goat Cheese|400|hide=normal,silver}}
Goat Cheese.png data-sort-value="400">Gold.png400g
Goat Cheese.png
Silver Quality Icon.png
data-sort-value="500">Gold.png500g
Goat Cheese.png
Gold Quality Icon.png
data-sort-value="600">Gold.png600g


{{Qualityprice|Large Goat Milk FR|345}}
Large Goat Milk FR.png data-sort-value="345">Gold.png345g
Large Goat Milk FR.png
Silver Quality Icon.png
data-sort-value="431">Gold.png431g
Large Goat Milk FR.png
Gold Quality Icon.png
data-sort-value="517">Gold.png517g


{{Qualityprice|Juice|260}}
(The base sell price of Red Cabbage is 260,
and the base sell price of Red Cabbage Juice is 585)
Juice.png data-sort-value="260">Gold.png260g
Juice.png
Silver Quality Icon.png
data-sort-value="325">Gold.png325g
Juice.png
Gold Quality Icon.png
data-sort-value="390">Gold.png390g


{{Qualityprice|Wine|750|pm=1.4}}
(The base sell price of Starfruit is 750,
and the Artisan base sell price of Starfruit Wine is 3,150)
Wine.png data-sort-value="750">Gold.png750g
Wine.png
Silver Quality Icon.png
data-sort-value="937">Gold.png937g
Wine.png
Gold Quality Icon.png
data-sort-value="1125">Gold.png1,125g


{{Qualityprice|Honey|30}}
(The base sell price of a Tulip is 30,
and the base sell price of Tulip Honey is 160)
Honey.png data-sort-value="30">Gold.png30g
Honey.png
Silver Quality Icon.png
data-sort-value="37">Gold.png37g
Honey.png
Gold Quality Icon.png
data-sort-value="45">Gold.png45g