Documentation
These usage notes will not be included in articles bearing this template.
This template creates a health bar.
{{healthbar
|value=
|size=
}}
| Parameter | Function | Default value |
|---|---|---|
value |
Integer health value between 0 and 20. Half heart = 1, full heart = 2, see examples below. | 0 (invisible) |
size |
Width of each icon in CSS units like "px" or "em". | 18px |
| Code | Result |
|---|---|
| {{healthbar|value=1}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |
| {{healthbar|value=2}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |
| {{healthbar|value=5}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |
| {{healthbar|value=20}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |
| {{healthbar|size=10px|value=10}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |
| {{healthbar|size=48px|value=6}} | Luafout in Module:Iconbar op regel 5: attempt to concatenate local 'full' (a nil value) |