Template:Hungerbar

From MC Public Wiki
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

The above documentation is transcluded from Template:Hungerbar/doc. (edit | history)

fr:Modèle:Faim