本站文本内容除另有声明外,转载时均必须注明出处。(详情…本站文本内容除另有声明外,转载时均必须注明出处。(详情…中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!中文Minecraft Wiki是完全公开的。请勇于扩充与修正内容!Minecraft中文Wiki微博正在更新!或许有兴趣去看看Minecraft中文Wiki微博正在更新!或许有兴趣去看看想与其他用户进行编辑上的沟通?社区专页正是为此创建的。想与其他用户进行编辑上的沟通?社区专页正是为此创建的。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。翻译或创建页面之前,不妨看看译名标准化Wiki条例页面。需要管理员的协助?在管理员告示板留言也许可以帮到您。需要管理员的协助?在管理员告示板留言也许可以帮到您。

We are currently performing an upgrade to our software. This upgrade will bring MediaWiki from version 1.31 to 1.33. While the upgrade is being performed on your wiki it will be in read-only mode. For more information check here.

Template:Healthbar

来自Minecraft Wiki
跳转至: 导航搜索
[查看 | 编辑 | 历史 | 清除缓存]文档页面
Lua logo.svg
此模板使用了模块:Iconbar,这些脚本均使用Lua编写。
更多详情,请参阅维基百科:LuaMediaWiki:扩展:Scribunto

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}} Withered Heart.svgWithered Heart.svgWithered Half Heart.svg
{{healthbar|5|absorption=1}} Absorption Heart.svgAbsorption Heart.svgAbsorption Half Heart.svg
{{healthbar|5|hardcore=1}} Hardcore Heart.svgHardcore Heart.svgHardcore Half Heart.svg
{{healthbar|5|poisoned=1|hardcore=1}} Poisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Half Heart.svg
{{healthbar|5|withered=1|hardcore=1}} Withered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|5|absorption=1|hardcore=1}} Absorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Half Heart.svg
{{healthbar|5|mob=1}} Mob Half Heart.svgMob Heart.svgMob 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}} Withered Heart.svgWithered Heart.svgWithered Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|absorption=1}} Absorption Heart.svgAbsorption Heart.svgAbsorption Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|hardcore=1}} Hardcore Heart.svgHardcore Heart.svgHardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|poisoned=1|hardcore=1}} Poisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|withered=1|hardcore=1}} Withered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|absorption=1|hardcore=1}} Absorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Half Heart.svgEmpty Heart.svgEmpty Heart.svg
{{healthbar|5|total=10|mob=1}} Empty Heart.svgEmpty Heart.svgMob Half Heart.svgMob Heart.svgMob Heart.svg
{{healthbar|20}} Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svg
{{healthbar|20|poisoned=1}} Poisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.svgPoisoned Heart.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}} Withered Heart.svgWithered Heart.svgWithered Heart.svgWithered Heart.svgWithered Heart.svgWithered Half Heart.svg
{{healthbar|11|9px|absorption=1}} Absorption Heart.svgAbsorption Heart.svgAbsorption Heart.svgAbsorption Heart.svgAbsorption Heart.svgAbsorption Half Heart.svg
{{healthbar|11|9px|hardcore=1}} Hardcore Heart.svgHardcore Heart.svgHardcore Heart.svgHardcore Heart.svgHardcore Heart.svgHardcore Half Heart.svg
{{healthbar|11|9px|poisoned=1|hardcore=1}} Poisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Half Heart.svg
{{healthbar|11|9px|withered=1|hardcore=1}} Withered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|11|9px|absorption=1|hardcore=1}} Absorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Half Heart.svg
{{healthbar|11|9px|mob=1}} Mob Half Heart.svgMob Heart.svgMob Heart.svgMob Heart.svgMob Heart.svgMob 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}} Withered Heart.svgWithered Heart.svgWithered Heart.svgWithered Half Heart.svg
{{healthbar|7|45px|absorption=1}} Absorption Heart.svgAbsorption Heart.svgAbsorption Heart.svgAbsorption Half Heart.svg
{{healthbar|7|45px|hardcore=1}} Hardcore Heart.svgHardcore Heart.svgHardcore Heart.svgHardcore Half Heart.svg
{{healthbar|7|45px|poisoned=1|hardcore=1}} Poisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Heart.svgPoisoned Hardcore Half Heart.svg
{{healthbar|7|45px|withered=1|hardcore=1}} Withered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Heart.svgWithered Hardcore Half Heart.svg
{{healthbar|7|45px|absorption=1|hardcore=1}} Absorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Heart.svgAbsorption Hardcore Half Heart.svg
{{healthbar|7|45px|mob=1}} Mob Half Heart.svgMob Heart.svgMob Heart.svgMob Heart.svg

See also

[查看 | 编辑 | 历史 | 清除缓存]上述文档是从Template:Healthbar/doc引用的。