Template:Hungerbar

From Eccentric Biomes Wiki
Jump to: navigation, search
Template-info.png Documentation

This template creates a food point bar.

Parameter Function Default value
1 Integer health value between 0 and 32. 0 = None, 1 = one food point, 2 = two food points etc. 0
2 Width of each icon in CSS units like "px" or "em". 18px
poisoned Shows the poisoned hunger bar 0
total Minimum number of food points to display. 0
Code Result
{{hungerbar}} Empty-Hunger.svg
{{hungerbar|0|9px}} Empty-Hunger.svg
{{hungerbar|1}} Half Hunger.svg
{{hungerbar|1|9px|poisoned=1}} 9px
{{hungerbar|2}} Hunger.svg
{{hungerbar|2|9px|poisoned=1}} 9px
{{hungerbar|5}} Half Hunger.svgHunger.svgHunger.svg
{{hungerbar|5|poisoned=1}} 18px18px18px
{{hungerbar|10}} Hunger.svgHunger.svgHunger.svgHunger.svgHunger.svg
{{hungerbar|10|poisoned=1}} 18px18px18px18px18px
{{hungerbar|5|9px}} Half Hunger.svgHunger.svgHunger.svg
{{hungerbar|5|9px|poisoned=1}} 9px9px9px
{{hungerbar|7|45px}} Half Hunger.svgHunger.svgHunger.svgHunger.svg
{{hungerbar|7|45px|poisoned=1}} 45px45px45px45px
{{hungerbar|7|total=20}} Empty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgHalf Hunger.svgHunger.svgHunger.svgHunger.svg
{{hungerbar|7|total=20|poisoned=1}} Empty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svgEmpty-Hunger.svg18px18px18px18px