Template:Infobox/food/doc
< Template:Infobox | food
Jump to navigation
Jump to search
- Sub-infobox template that takes care of the "Food Details" inside infoboxes.
- Called from metaobj infobox if energy a/o hunger is not empty.
- Expects the following parameters:
- energy: Expects number greater than Zero. Anything else defaults to Unknown output.
- hunger: Expects number greater than Zero. Anything else defaults to Unknown output.
- sat1..sat4: Satiations. Optional/defaults to no output if left empty.
- Calculates Energy-per-Hunger value. Defaults to N/A if either energy a/o hunger contains invalid input.
- General preview 1:
Food details | ||||||||
---|---|---|---|---|---|---|---|---|
Energy Filled | 11.1 | |||||||
Hunger Filled | 33.3 | |||||||
Energy/Hunger | 0.33 | |||||||
Satiates | Berries Fruit | |||||||
- General preview 2:
Food details | ||||||||
---|---|---|---|---|---|---|---|---|
Energy Filled | (Unknown) | |||||||
Hunger Filled | (Unknown) | |||||||
Energy/Hunger | (N/A) | |||||||
Satiates | {{{sat1}}} {{{sat2}}} {{{sat3}}} {{{sat4}}} | |||||||