Template:MC/Health
Template page
More actions
Template documentation (for the above template, sometimes hidden or invisible) [view] [edit] [history] [refresh]
Template:Documentation header Template:Shortcut Template:Lua
This template displays health points and visualizes these with the help of a health bar.
For a more compact display, all health point values above 10 (5 hearts) are replaced by Template:Healthbar × [hp / 2].
All health point values which are not whole numbers are also replaced by Template:Healthbar × [hp / 2].
| Parameter | Function | Default value |
|---|---|---|
1 |
Amount of hearts to show. | 0 |
2 |
Size of hearts in pixels. | 9 |
poisoned |
Show yellow-green heart icons. | None |
withered |
Show black withered heart icons. | None |
absorption |
Show absorption heart icons. | None |
freezing |
Show blue freezing heart icons. | None |
hardcore |
Show hardcore heart icon variation. | None |
mob |
Show mob heart icons, aligned to the right. | None |
notag |
Remove number and parenthesis. | None |
short |
Use the shortened format, where one heart is shown with a multiplier. | None |
total |
Total or minimum amount of hearts to show, any more than the set amount in Template:P are shown as empty. | 0 |
| Code | Result |
|---|---|
| {{hp}} | Template:Hp |
| {{hp|0}} | Template:Hp |
| {{hp|4}} | Template:Hp |
| {{hp|4|total=20}} | Template:Hp |
| {{hp|7|poisoned=1}} | Template:Hp |
| {{hp|7|withered=1}} | Template:Hp |
| {{hp|7|freezing=1}} | Template:Hp |
| {{hp|7|absorption=1}} | Template:Hp |
| {{hp|7|hardcore=1}} | Template:Hp |
| {{hp|7|hardcore=1|poisoned=1}} | Template:Hp |
| {{hp|7|hardcore=1|withered=1}} | Template:Hp |
| {{hp|7|hardcore=1|absorption=1}} | Template:Hp |
| {{hp|7|hardcore=1|freezing=1}} | Template:Hp |
| {{hp|7|mob=1}} | Template:Hp |
| {{hp|4|18px}} | Template:Hp |
| {{hp|20|notag=1}} | Template:Hp |
| {{hp|26|notag=1}} | Template:Hp |
| {{hp|10}} | Template:Hp |
| {{hp|2.5}} | Template:Hp |
| {{hp|41}} | Template:Hp |
| {{hp|4|short=1}} | Template:Hp |
de:Vorlage:HP es:Plantilla:Salud fr:Modèle:Pv ja:テンプレート:Health it:Template:Hp ko:틀:Hp nl:Sjabloon:Hp pt:Predefinição:Saúde ru:Шаблон:Здоровье uk:Шаблон:Здоров'я
th:แม่แบบ:HpThe above text is transcluded from Template:MC/Health/doc; you can change it or view its history.
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Health/doc. (View all subpages of this page.)
If you're done making changes, please refresh the text.
Please add categories and interwikis to Template:MC/Health/doc. (View all subpages of this page.)