Jump to content

Template:EdibilityGrid: Difference between revisions

From HourGlass: The Game Wiki
https://hourglassachives.wikioasis.org/wiki/Main_Page>Margotbean
update
 
PolyFox (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 19:06, April 5, 2025

Description[edit]

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

Parameters[edit]

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[edit]

Template Call Result
{{EdibilityGrid|Melon|45}} data-sort-value="45"
{{EdibilityGrid|Melon|45|showitem=true}} data-sort-value="45"
{{EdibilityGrid|Parsnip|10}} data-sort-value="10"
{{EdibilityGrid|Ginger|10}} data-sort-value="10"
{{EdibilityGrid|Goat Cheese|50|hide=normal,silver}} data-sort-value="50"
{{EdibilityGrid|Large Goat Milk JA|35|showitem=true}} data-sort-value="35"
{{EdibilityGrid|Juice|30}} data-sort-value="30"
{{EdibilityGrid|Wine|20}} data-sort-value="20"
{{EdibilityGrid|Holly|-15}} data-sort-value="-15"
{{EdibilityGrid|Bug Steak|18|quality=0}}

Missing health parameter; Shows incorrect health value

data-sort-value="18"
{{EdibilityGrid|Bug Steak|18|health=30|quality=0}} data-sort-value="18"

de:Vorlage:EdibilityGrid es:Plantilla:EdibilityGrid fr:Modèle:EdibilityGrid it:Template:EdibilityGrid ja:テンプレート:EdibilityGrid ko:틀:EdibilityGrid hu:Sablon:EdibilityGrid pt:Predefinição:EdibilityGrid ru:Шаблон:EdibilityGrid tr:Şablon:EdibilityGrid zh:Template:EdibilityGrid

Cookies help us deliver our services. By using our services, you agree to our use of cookies.