Template:Hungerbar/doc

From MC Public Wiki
< Template:Hungerbar
Revision as of 17:02, 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 food point bar.

Parameter Function Default value
1 Integer health value between 0 and 32. 0 = None, 1 = one food point, 2 = two food points etc. 0
2 Width of each icon in CSS units like "px" or "em". 18px
Code Result
{{hungerbar}} File:Empty Foodpoint.png
{{hungerbar|0|9px}} File:Empty Foodpoint.png
{{hungerbar|1}} File:Foodpoint.png
{{hungerbar|2}} File:Foodpoint.pngFile:Foodpoint.png
{{hungerbar|5}} File:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.png
{{hungerbar|10}} File:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.png
{{hungerbar|5|10px}} File:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.png
{{hungerbar|6|48px}} File:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.pngFile:Foodpoint.png

See also

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