Template:Health

From BTA-Mirror
[view | edit | history | purge]Documentation

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 ♥ × [hp / 2].

All health point values which are not whole numbers are also replaced by ♥ × [hp / 2].

Parameter Function Default value
1 Amount of hearts to show. 0
2 Size of hearts in pixels. 9
notag Remove number and parenthesis. 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}} 0 ()
{{hp|0}} 0 ()
{{hp|4}} 4 (♥♥)
{{hp|4|total=20}} 4 (♥♥)
{{hp|4|18px}} 4 (♥♥)
{{hp|20|notag=1}} ♥ × 10
{{hp|26|notag=1}} ♥ × 13
{{hp|10}} 10 (♥♥♥♥♥)
{{hp|2.5}} 2.5 (♥)
{{hp|41}} 41 (♥ × 20.5)
[view | edit | history | purge]The above documentation is transcluded from Template:Health/doc.