Template:Healthbar/doc

From BTA-Mirror
Revision as of 13:35, 19 March 2023 by imported>Ttv pedro270707 (Accidentally left a health bar in the introductory text)

This template implements a Minecraft-like health bar.

Arguments

Argument Default value Note
size 18 Sets the size of each heart.
value 0 Sets the amount of hearts.
total 0 Sets the total amount of hearts. Use if empty hearts are needed after the filled hearts.

Usage

Code Result
{{healthbar}}
{{healthbar|size=9}}
{{healthbar|value=1}}
{{healthbar|value=2}} ♥
{{healthbar|value=5}} ♥♥
{{healthbar|value=5|total=10}} ♥♥
{{healthbar|value=7|size=45}} ♥♥♥