Template:EdibilityGrid

Revision as of 01:30, 27 January 2023 by Margotbean (talk | contribs) (1 too many </div>s)

Description

This template displays a grid of energy and health values for an edible item.

Parameters

Parameter Notes
First (unnamed) parameter Name of image (minus ".png")
Second (unnamed) parameter Edibility of item (can be found in ObjectInformation.xnb)
Items with a negative edibility will display the poison icon instead of the energy icon.
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 Algae, Green Tea, Juice, Oil, Qi Fruit, Sap, and White Algae)
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)
showitem Set to true to display the image of the edible item
dsv data-sort-value
Set to false if the energy & health values 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).
health Use to override the normal calculation for health, when the normal formula does not apply (e.g., for Bug Steak and Oil of Garlic)

Examples

Template Call Result
{{EdibilityGrid|Melon|45}}
data-sort-value="0045"
Melon.png  Energy.png 113 Health.png 50
Melon.png
Silver Quality Icon.png
Energy.png 158 Health.png 71
Melon.png
Gold Quality Icon.png
Energy.png 203 Health.png 91
{{EdibilityGrid|Melon|45|showitem=true}}
data-sort-value="0045"
Melon.png  Energy.png 113 Health.png 50
Melon.png
Silver Quality Icon.png
Energy.png 158 Health.png 71
Melon.png
Gold Quality Icon.png
Energy.png 203 Health.png 91
{{EdibilityGrid|Parsnip|10}}
data-sort-value="0010"
Parsnip.png  Energy.png 25 Health.png 11
Parsnip.png
Silver Quality Icon.png
Energy.png 35 Health.png 15
Parsnip.png
Gold Quality Icon.png
Energy.png 45 Health.png 20
{{EdibilityGrid|Ginger|10}}
data-sort-value="0010"
Ginger.png  Energy.png 25 Health.png 11
Ginger.png
Silver Quality Icon.png
Energy.png 35 Health.png 15
Ginger.png
Gold Quality Icon.png
Energy.png 45 Health.png 20
{{EdibilityGrid|Goat Cheese|50|hide=normal,silver}}
data-sort-value="0050"
Goat Cheese.png
Gold Quality Icon.png
Energy.png 225 Health.png 101
{{EdibilityGrid|Large Goat Milk JA|35|showitem=true}}
data-sort-value="0035"
Large Goat Milk JA.png  Energy.png 88 Health.png 39
Large Goat Milk JA.png
Silver Quality Icon.png
Energy.png 123 Health.png 55
Large Goat Milk JA.png
Gold Quality Icon.png
Energy.png 158 Health.png 71
{{EdibilityGrid|Juice|30}}
data-sort-value="0030"
Juice.png  Energy.png 75 Health.png 33
Juice.png
Silver Quality Icon.png
Energy.png 105 Health.png 47
Juice.png
Gold Quality Icon.png
Energy.png 135 Health.png 60
{{EdibilityGrid|Wine|20}}
data-sort-value="0020"
Wine.png  Energy.png 50 Health.png 22
Wine.png
Silver Quality Icon.png
Energy.png 70 Health.png 31
Wine.png
Gold Quality Icon.png
Energy.png 90 Health.png 40
{{EdibilityGrid|Holly|-15}}
data-sort-value="0-15"
Holly.png  Poison.png −37
Holly.png
Silver Quality Icon.png
Poison.png −52
Holly.png
Gold Quality Icon.png
Poison.png −67
{{EdibilityGrid|Bug Steak|18|quality=0}}

Missing health parameter; Shows incorrect health value

data-sort-value="0018"
Bug Steak.png  Energy.png 45 Health.png 20
Bug Steak.png
Silver Quality Icon.png
Energy.png 63 Health.png 28
Bug Steak.png
Gold Quality Icon.png
Energy.png 81 Health.png 36
{{EdibilityGrid|Bug Steak|18|health=30|quality=0}}
data-sort-value="0018"
Bug Steak.png  Energy.png 45 Health.png 20
Bug Steak.png
Silver Quality Icon.png
Energy.png 63 Health.png 28
Bug Steak.png
Gold Quality Icon.png
Energy.png 81 Health.png 36