Template:Healthbar/doc

< Template:Healthbar
Revision as of 01:27, 20 October 2013 by Mastergalen (talk | contribs) (Created page with "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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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, see examples below. 0
2 Width of each icon. 18px
total Total amount of hearts to be shown 0
poisoned Shows yellow-green poison hearts. 0
withered Shows black withered hearts. 0
hardcore Shows the hardcore version of the normal/poisoned/withered/absorption hearts. 0
mob Shows rideable mob hearts. 0
absorption Shows the hearts added by absorption. 0
Code Result
{{healthbar}} Empty Heart.svg
{{healthbar|0|9px}} Empty Heart.svg
{{healthbar|1}} Half Heart.svg
{{healthbar|2}} Heart.svg
{{healthbar|5}} Heart.svgHeart.svgHalf Heart.svg
{{healthbar|5|poisoned=1}} Poisoned Heart.svgPoisoned Heart.svgPoisoned Half Heart.svg
{{healthbar|5|withered=1}} File:Withered Heart.svgFile:Withered Heart.svgFile:Withered Half Heart.svg
{{healthbar|5|absorption=1}} File:Absorption Heart.svgFile:Absorption Heart.svgAbsorption Half Heart.svg
{{healthbar|5|hardcore=1}} File:Hardcore Heart.svgFile:Hardcore Heart.svgHardcore Half Heart.svg
{{healthbar|5|poisoned=1|hardcore=1}} File:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Half Heart.svg
{{healthbar|5|withered=1|hardcore=1}} File:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|5|absorption=1|hardcore=1}} File:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Half Heart.svg
{{healthbar|5|mob=1}} File:Mob Half Heart.svgFile:Mob Heart.svgFile:Mob Heart.svg
{{healthbar|5|total=10}} Heart.svgHeart.svgHalf Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|poisoned=1}} Poisoned Heart.svgPoisoned Heart.svgPoisoned Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|withered=1}} File:Withered Heart.svgFile:Withered Heart.svgFile:Withered Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|absorption=1}} File:Absorption Heart.svgFile:Absorption Heart.svgAbsorption Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|hardcore=1}} File:Hardcore Heart.svgFile:Hardcore Heart.svgHardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|poisoned=1|hardcore=1}} File:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|withered=1|hardcore=1}} File:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgWithered Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|absorption=1|hardcore=1}} File:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|mob=1}} Empty Heart.svgEmpty Heart.svgFile:Mob Half Heart.svgFile:Mob Heart.svgFile:Mob Heart.svg
{{healthbar|20}} Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svg
{{healthbar|11|9px}} Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHalf Heart.svg
{{healthbar|11|9px|poisoned=1}} Poisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Half Heart.svg
{{healthbar|11|9px|withered=1}} File:Withered Heart.svgFile:Withered Heart.svgFile:Withered Heart.svgFile:Withered Heart.svgFile:Withered Heart.svgFile:Withered Half Heart.svg
{{healthbar|11|9px|absorption=1}} File:Absorption Heart.svgFile:Absorption Heart.svgFile:Absorption Heart.svgFile:Absorption Heart.svgFile:Absorption Heart.svgAbsorption Half Heart.svg
{{healthbar|11|9px|hardcore=1}} File:Hardcore Heart.svgFile:Hardcore Heart.svgFile:Hardcore Heart.svgFile:Hardcore Heart.svgFile:Hardcore Heart.svgHardcore Half Heart.svg
{{healthbar|11|9px|poisoned=1|hardcore=1}} File:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Half Heart.svg
{{healthbar|11|9px|withered=1|hardcore=1}} File:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|11|9px|absorption=1|hardcore=1}} File:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Half Heart.svg
{{healthbar|11|9px|mob=1}} File:Mob Half Heart.svgFile:Mob Heart.svgFile:Mob Heart.svgFile:Mob Heart.svgFile:Mob Heart.svgFile:Mob Heart.svg
{{healthbar|7|45px}} Heart.svgHeart.svgHeart.svgHalf Heart.svg
{{healthbar|7|45px|poisoned=1}} Poisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Half Heart.svg
{{healthbar|7|45px|withered=1}} File:Withered Heart.svgFile:Withered Heart.svgFile:Withered Heart.svgFile:Withered Half Heart.svg
{{healthbar|7|45px|absorption=1}} File:Absorption Heart.svgFile:Absorption Heart.svgFile:Absorption Heart.svgAbsorption Half Heart.svg
{{healthbar|7|45px|hardcore=1}} File:Hardcore Heart.svgFile:Hardcore Heart.svgFile:Hardcore Heart.svgHardcore Half Heart.svg
{{healthbar|7|45px|poisoned=1|hardcore=1}} File:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Heart.svgFile:Poisoned Hardcore Half Heart.svg
{{healthbar|7|45px|withered=1|hardcore=1}} File:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgFile:Withered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|7|45px|absorption=1|hardcore=1}} File:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Heart.svgFile:Absorption Hardcore Half Heart.svg
{{healthbar|7|45px|mob=1}} File:Mob Half Heart.svgFile:Mob Heart.svgFile:Mob Heart.svgFile:Mob Heart.svg


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