7 days to mine minecraft mod Wiki
Advertisement
This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information
Lua logo.svg
This template uses Module:Iconbar, a script written in Lua.

This template creates a food point bar.

Parameter Function Default value
|1= Integer hunger value between 0 and 32. Empty heart = 0, half heart = 1, full heart = 2, etc. 0
|2= Width of each icon in pixels. 18
|link= Page linked when clicking on an icon. None
|total= Total amount of food points to be shown. 0
|poisoned= Shows the poisoned hunger bar. 0
Code Result
{{hungerbar}} File:Empty Hunger (icon).png
{{hungerbar|<0>|<9px>}} File:Empty Hunger (icon).png
{{hungerbar|<1>}} 🍗
{{hungerbar|<1>|<9px>|<poisoned=1>}} File:Half Poisoned Hunger (icon).png
{{hungerbar|<2>}} 🍗
{{hungerbar|<2>|<9px>|<poisoned=1>}} File:Poisoned Hunger (icon).png
{{hungerbar|<5>}} 🍗🍗🍗
{{hungerbar|<5>|<poisoned=1>}} File:Half Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).png
{{hungerbar|<10>}} 🍗🍗🍗🍗🍗
{{hungerbar|<10>|<poisoned=1>}} File:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).png
{{hungerbar|<5>|<9px>}} 🍗🍗🍗
{{hungerbar|<5>|<9px>|<poisoned=1>}} File:Half Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).png
{{hungerbar|<7>|<45px>}} 🍗🍗🍗🍗
{{hungerbar|<7>|<45px>|<poisoned=1>}} File:Half Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).png
{{hungerbar|<7>|<total=20>}} File:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).png🍗🍗🍗🍗
{{hungerbar|<7>|<total=20>|<poisoned=1>}} File:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Empty Hunger (icon).pngFile:Half Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).pngFile:Poisoned Hunger (icon).png

See also

Template:Iconbar see also

de:Vorlage:Hungerleiste/Dokumentation fr:Modèle:Faim/doc pl: Szablon:Hungerbar/doc pt:Predefinição:Barra de fome/doc ru: Шаблон:Голод/док zh:Template:Hungerbar/doc

Advertisement