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 Modifier (W16) 44.4
Hunger Filled (W16) -1
Energy/Hunger (W16) -1
Satiates Satiations-Berries.png Berries
Satiations-Fruit.png Fruit

|- | colspan=9 style="padding:0px;" |

FEPs +1 +2 Sum%
STR 0 0 -1%
AGI 0 0 -1%
INT 0 0 -1%
CON 0 0 -1%
PER 0 0 -1%
CHA 0 0 -1%
DEX 0 0 -1%
WIL 0 0 -1%
PSY 0 0 -1%
Sum 0 0 (0)
Hunger per FEP -1
FEP per Hunger -0


General preview 2:
Food details
Energy Filled Placeholder other.png (Unknown)
Hunger Modifier (W16) -1
Hunger Filled (W16) -1
Energy/Hunger (W16) -1
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}}}

|-