Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Revision as of 16:15, 9 March 2026 by NIK220V (talk | contribs) (Created page with "{{Documentation header}} {{lua|Iconbar}} This template creates a health bar. {| class="wikitable" ! Parameter ! Function ! Default value |- | <code>1</code> || Integer health value between 0 and 32. Empty heart = 0, half heart = 1, full heart = 2, etc. || 0 |- | <code>2</code> || Width of each icon in pixels. || 18 |- | <code>link</code> || Page linked when clicking on an icon. || ''None'' |- | <code>total</code> || Total amount of hearts to be shown. || 0 |- | <code>po...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
This is the documentation page. It should be transcluded into Template:Healthbar. See Template:Documentation for more information.
This template uses Module:Iconbar, a script written in Lua.

This template creates a health bar.

Parameter Function Default value
1 Integer health 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 hearts to be shown. 0
poisoned Shows yellow-green poison hearts. None
withered Shows black withered hearts. None
freezing Shows blue freezing hearts. None
hardcore Shows the hardcore version of the normal/poisoned/withered/absorption hearts. None
mob Shows mob hearts. None
absorption Shows the hearts added by absorption. None
Code Result
{{healthbar}} 🖤
{{healthbar|0|9px}} 🖤
{{healthbar|1}} 💔
{{healthbar|2}} ❤️
{{healthbar|5}} ❤️❤️💔
{{healthbar|5|poisoned=1}} ❤️❤️💔
{{healthbar|5|withered=1}} ❤️❤️💔
{{healthbar|5|absorption=1}} ❤️❤️💔
{{healthbar|5|freezing=1}} ❤️❤️💔
{{healthbar|5|hardcore=1}} ❤️❤️💔
{{healthbar|5|poisoned=1|hardcore=1}} ❤️❤️💔
{{healthbar|5|withered=1|hardcore=1}} ❤️❤️💔
{{healthbar|5|absorption=1|hardcore=1}} ❤️❤️💔
{{healthbar|5|mob=1}} 💔❤️❤️
{{healthbar|5|total=10}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|poisoned=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|withered=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|absorption=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|freezing=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|hardcore=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|poisoned=1|hardcore=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|withered=1|hardcore=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|absorption=1|hardcore=1}} ❤️❤️💔🖤🖤
{{healthbar|5|total=10|mob=1}} 🖤🖤💔❤️❤️
{{healthbar|20}} ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
{{healthbar|20|poisoned=1}} ❤️❤️❤️❤️❤️❤️❤️❤️❤️❤️
{{healthbar|11|9px}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|poisoned=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|withered=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|absorption=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|freezing=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|hardcore=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|poisoned=1|hardcore=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|withered=1|hardcore=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|absorption=1|hardcore=1}} ❤️❤️❤️❤️❤️💔
{{healthbar|11|9px|mob=1}} 💔❤️❤️❤️❤️❤️
{{healthbar|7|45px}} ❤️❤️❤️💔
{{healthbar|7|45px|poisoned=1}} ❤️❤️❤️💔
{{healthbar|7|45px|withered=1}} ❤️❤️❤️💔
{{healthbar|7|45px|absorption=1}} ❤️❤️❤️💔
{{healthbar|7|45px|freezing=1}} ❤️❤️❤️💔
{{healthbar|7|45px|hardcore=1}} ❤️❤️❤️💔
{{healthbar|7|45px|poisoned=1|hardcore=1}} ❤️❤️❤️💔
{{healthbar|7|45px|withered=1|hardcore=1}} ❤️❤️❤️💔
{{healthbar|7|45px|absorption=1|hardcore=1}} ❤️❤️❤️💔
{{healthbar|7|45px|mob=1}} 💔❤️❤️❤️