This page is protected and can only be modified by administrators

Template:Health

From Aether Project Wiki
Jump to navigation Jump to search
[view | edit | history | purge]Documentation
Lua logo.svg
This template uses Module:Iconbar, a script written in 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 ♥ × [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
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
total Total or minimum amount of hearts to show, any more than the set amount in |1= are shown as empty. 0
Code Result
{{health}} 0♥
{{health|0}} 0♥
{{health|3}} 3♥♥
{{health|4}} 4♥♥
{{health|4|total=20}} 4♥♥♥♥♥♥♥♥♥♥
{{health|7|poisoned=1}} 7♥♥♥♥
{{health|7|withered=1}} 7♥♥♥♥
{{health|7|freezing=1}} 7♥♥♥♥
{{health|7|absorption=1}} 7♥♥♥♥
{{health|7|hardcore=1}} 7♥♥♥♥
{{health|7|hardcore=1|poisoned=1}} 7♥♥♥♥
{{health|7|hardcore=1|withered=1}} 7♥♥♥♥
{{health|7|hardcore=1|absorption=1}} 7♥♥♥♥
{{health|7|hardcore=1|freezing=1}} 7♥♥♥♥
{{health|7|mob=1}} 7♥♥♥♥
{{health|4|18px}} 4♥♥
{{health|20|notag=1}} ♥ × 10
{{health|26|notag=1}} ♥ × 13
{{health|10}} 10♥♥♥♥♥
{{health|2.5}} 2.5♥ × 1.25
{{health|41}} 41♥ × 20.5
[view | edit | history | purge]The above documentation is transcluded from Template:Health/doc.