Template:Healthbar/doc

From MC Public Wiki
< Template:Healthbar
Revision as of 17:01, 14 October 2011 by Admin (talk | contribs) (1 revision)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{#vardefine: nodoc | {{{nodoc}}} }}{{#vardefine: baddoc | {{{baddoc}}} }}

Template-info.png Documentation

This template creates a health bar.

Parameter Function Default value
1 Integer health value between 0 and 32. Empty heart = 0, half heart = 1, full heart = 2, see examples below. 0
2 Width of each icon in CSS units like "px" or "em". 18px
Code Result
{{healthbar}} File:Empty Heart.png
{{healthbar|0|9px}} File:Empty Heart.png
{{healthbar|1}} Half Heart.png
{{healthbar|2}} Heart.png
{{healthbar|5}} Heart.pngHeart.pngHalf Heart.png
{{healthbar|20}} Heart.pngHeart.pngHeart.pngHeart.pngHeart.pngHeart.pngHeart.pngHeart.pngHeart.pngHeart.png
{{healthbar|10|10px}} Heart.pngHeart.pngHeart.pngHeart.pngHeart.png
{{healthbar|6|48px}} Heart.pngHeart.pngHeart.png

See also

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.

fr:Modèle:Cœurs/doc