Template:Hungerbar

Revision as of 22:21, 25 January 2014 by Mastergalen (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page, it should be transcluded into the main template page. See Template:Documentation for more information
This template uses Module:Iconbar, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

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}} File:Empty Hunger.png
{{hungerbar|0|9px}} File:Empty Hunger.png
{{hungerbar|1}} File:Half Hunger.png
{{hungerbar|1|9px|poisoned=1}} File:Poisoned Half Hunger.png
{{hungerbar|2}} File:Hunger.png
{{hungerbar|2|9px|poisoned=1}} File:Poisoned Hunger.png
{{hungerbar|5}} File:Half Hunger.pngFile:Hunger.pngFile:Hunger.png
{{hungerbar|5|poisoned=1}} File:Poisoned Half Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.png
{{hungerbar|10}} File:Hunger.pngFile:Hunger.pngFile:Hunger.pngFile:Hunger.pngFile:Hunger.png
{{hungerbar|10|poisoned=1}} File:Poisoned Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.png
{{hungerbar|5|9px}} File:Half Hunger.pngFile:Hunger.pngFile:Hunger.png
{{hungerbar|5|9px|poisoned=1}} File:Poisoned Half Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.png
{{hungerbar|7|45px}} File:Half Hunger.pngFile:Hunger.pngFile:Hunger.pngFile:Hunger.png
{{hungerbar|7|45px|poisoned=1}} File:Poisoned Half Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.png
{{hungerbar|7|total=20}} File:Half Hunger.pngFile:Hunger.pngFile:Hunger.pngFile:Hunger.png
{{hungerbar|7|total=20|poisoned=1}} File:Poisoned Half Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.pngFile:Poisoned Hunger.png

See also

Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis