Template:Infobox/food/doc

From Ring of Brodgar
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 Satiations-Berries.png Berries
Satiations-Fruit.png Fruit


General preview 2:
Food details
Energy Filled Placeholder other.png (Unknown)
Hunger Filled Placeholder other.png (Unknown)
Energy/Hunger Placeholder other.png (N/A)
Satiates link=File:Satiations-{{{sat1}}}.png| {{{sat1}}}
link=File:Satiations-{{{sat2}}}.png| {{{sat2}}}
link=File:Satiations-{{{sat3}}}.png| {{{sat3}}}
link=File:Satiations-{{{sat4}}}.png| {{{sat4}}}