Template:Hp

From Eccentric Biomes Wiki
Jump to: navigation, search
Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Hp/doc to edit this documentation. (How does this work?)

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 16 (8 hearts) are replaced by Heart.svg × [hp / 2].

Parameter Function Default value
1 Amount of hearts to show. 0
2 Size of hearts. 9px
poisoned Show yellow-green heart icons. 0
withered Show black withered heart icons. 0
absorption Show absorption heart icons. 0
hardcore Show hardcore heart icon variation. 0
notag Remove number and parenthesis. 0
Code Result
{{hp}} 0 (9px)
{{hp|0}} 0 (9px)
{{hp|4}} 4 (Heart.svgHeart.svg)
{{hp|7|poisoned=1}} 7 (9px9px9px9px)
{{hp|7|withered=1}} 7 (9px9px9px9px)
{{hp|7|absorption=1}} 7 (9px9px9px9px)
{{hp|7|hardcore=1}} 7 (9px9px9px9px)
{{hp|7|hardcore=1|poisoned=1}} 7 (9px9px9px9px)
{{hp|7|hardcore=1|withered=1}} 7 (9px9px9px9px)
{{hp|7|hardcore=1|absorption=1}} 7 (9px9px9px9px)
{{hp|7|mob=1}} 7 (9px9px9px9px)
{{hp|4|18px}} 4 (Heart.svgHeart.svg)
{{hp|16|notag=1}} Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svg
{{hp|26|notag=1}} Heart.svg × 13
{{hp|16}} 16 (Heart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svgHeart.svg)
{{hp|20}} 20 (Heart.svg × 10)
{{hp|41}} 41 (Heart.svg × 20.5)