Template:Quality

From Stardew Valley Wiki
Revision as of 21:47, 19 July 2017 by Rigel Kent (talk | contribs) (set image alt attribute to item name {{{1}}})
Jump to navigation Jump to search

Description

This template overlays a quality star icon (silver, gold, or iridium) over an image.

Parameters

Parameter Notes
First (unnamed) parameter Name of background image (without extension such as .png)
Second (unnamed) parameter Quality star to display
Valid values: normal, 0, silver, 1, gold, 2, iridium, 4
Third (unnamed) parameter Desired display width of background image (do not include "px")
Valid values: 48, 36, 32, 24 (other values will be accepted, but may produce undesired results)
Default value: 24
Fourth (unnamed) parameter center, if the image is to be displayed in a table cell. Adding this parameter will center the image in the cell.

Examples

Template Call Result
{{Quality|Parsnip|iridium}}
Parsnip
Iridium
{{Quality|Parsnip|silver|24|center}}
Parsnip
Silver
{{Quality|Sunfish|normal|36}}
Sunfish
{{Quality|Red Plate|gold|36|center}}
Red Plate
Gold
{{Quality|Beer|gold|48}}
Beer
Gold
{{Quality|Large Goat Milk ES|gold|32|center}}
Large Goat Milk ES
Gold