Template:Health
Revision as of 16:44, 10 October 2022 by Tobias Alcaraz (talk | contribs) (Added correct support for 0 health too)
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
About
This template serves to display health points in a page.
Usage
The syntax of this template is {{Health|<number>}}
. If the value given is 0
or lower, it will display an empty heart icon, and if the value is higher than 10
, it will display n × <health>
where n
is the number you specified. It can also round to the nearest integer.
Examples
{{Health|0}}
→ 0 (){{Health|0.5}}
→ 0.5 (0.25 × ){{Health|1}}
→ 1 (){{Health|1.5}}
→ 1.5 (0.75 × ){{Health|2}}
→ 2 (){{Health|2.5}}
→ 2.5 (1.25 × ){{Health|3}}
→ 3 (){{Health|3.5}}
→ 3.5 (1.75 × ){{Health|4}}
→ 4 (){{Health|4.5}}
→ 4.5 (2.25 × ){{Health|5}}
→ 5 (){{Health|5.5}}
→ 5.5 (2.75 × ){{Health|6}}
→ 6 (){{Health|6.5}}
→ 6.5 (3.25 × ){{Health|7}}
→ 7 (){{Health|7.5}}
→ 7.5 (3.75 × ){{Health|8}}
→ 8 (){{Health|8.5}}
→ 8.5 (4.25 × ){{Health|9}}
→ 9 (){{Health|9.5}}
→ 9.5 (4.75 × ){{Health|10}}
→ 10 (){{Health|10.5}}
→ 10.5 (5.25 × )
Rounding examples:
{{Health|1.25}}
→ 1.25 (0.625 × ){{Health|1.5}}
→ 1.5 (0.75 × ){{Health|1.75}}
→ 1.75 (0.875 × )
More than 20 health points:
{{Health|20.5}}
→ 20.5 (10.25 × ){{Health|30}
→ 30 (15 × ){{Health|600}}
→ 600 (300 × )