Template:EdibilityGrid/doc: Difference between revisions
Appearance
imported>Margotbean update |
imported>Margotbean No edit summary |
||
| Line 57: | Line 57: | ||
|<code><nowiki>{{EdibilityGrid|Wine|20}}</nowiki></code> | |<code><nowiki>{{EdibilityGrid|Wine|20}}</nowiki></code> | ||
|{{EdibilityGrid|Wine|20}} | |{{EdibilityGrid|Wine|20}} | ||
|- | |||
|<code><nowiki>{{EdibilityGrid|Holly|-15}}</nowiki></code> | |||
|{{EdibilityGrid|Holly|-15}} | |||
|- | |- | ||
|}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | |}<includeonly>{{Addlanglinks}}[[Category:Templates]]</includeonly><noinclude>[[Category:Template documentation]]</noinclude> | ||
Revision as of 22:33, 28 February 2023
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, or list of qualities to display. Defaults to all qualities (normal, silver, gold, iridium) if omitted. Note: Instead of specifying 3 qualities to show, use the "hide" parameter with one quality instead. 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). |
Examples
| Template Call | Result | ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{EdibilityGrid|Melon|45}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Melon|45|showitem=true}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Parsnip|10}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Ginger|10}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Goat Cheese|50|hide=normal,silver}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Large Goat Milk JA|35|showitem=true}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Juice|30}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Wine|20}}
|
| ||||||||||||||||||||
{{EdibilityGrid|Holly|-15}}
|
|