Template:Healthbar

From Minecraft基岩版开发Wiki
[查看 | 编辑 | 历史 | 清除缓存]文档页面

此模板用于创建生命栏。

参数 功能 默认值
1 0至32间的整数值。空心=0,半心=1,整心=2,参见下面的示例。 0
2 每个图标的宽度。 18px
total 显示心的总数。 0
poisoned 显示黄绿色的中毒心 0
withered 显示黑色的凋零心。 0
hardcore 显示正常/中毒/凋零/伤害吸收心脏的极限版本。 0
mob 显示可骑乘生物的心。 0
absorption 显示出因伤害吸收而增加的心。 0
代码 输出
{{healthbar}} ♥
{{healthbar|0|9px}} ♥
{{healthbar|1}} ♥
{{healthbar|2}} ♥
{{healthbar|5}} ♥♥♥
{{healthbar|5|poisoned=1}} ♥♥♥
{{healthbar|5|withered=1}} ♥♥♥
{{healthbar|5|absorption=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|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|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|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}} ♥♥♥♥

另见[edit]