Šablona:Hungerbar

Z Minecraft Wiki
Přejít na: navigace, hledání
[view | edit | history | purge]Documentation
Lua logo.svg
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}} Empty Hunger (icon).png
{{hungerbar|0|9px}} Empty Hunger (icon).png
{{hungerbar|1}} Half Hunger (icon).png
{{hungerbar|1|9px|poisoned=1}} Half Poisoned Hunger (icon).png
{{hungerbar|2}} Hunger (icon).png
{{hungerbar|2|9px|poisoned=1}} Poisoned Hunger (icon).png
{{hungerbar|5}} Half Hunger (icon).pngHunger (icon).pngHunger (icon).png
{{hungerbar|5|poisoned=1}} Half Poisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).png
{{hungerbar|10}} Hunger (icon).pngHunger (icon).pngHunger (icon).pngHunger (icon).pngHunger (icon).png
{{hungerbar|10|poisoned=1}} Poisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).png
{{hungerbar|5|9px}} Half Hunger (icon).pngHunger (icon).pngHunger (icon).png
{{hungerbar|5|9px|poisoned=1}} Half Poisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).png
{{hungerbar|7|45px}} Half Hunger (icon).pngHunger (icon).pngHunger (icon).pngHunger (icon).png
{{hungerbar|7|45px|poisoned=1}} Half Poisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).png
{{hungerbar|7|total=20}} Empty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngHalf Hunger (icon).pngHunger (icon).pngHunger (icon).pngHunger (icon).png
{{hungerbar|7|total=20|poisoned=1}} Empty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngEmpty Hunger (icon).pngHalf Poisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).pngPoisoned Hunger (icon).png

See also

[view | edit | history | purge]The above documentation is transcluded from Šablona:Hungerbar/doc.