Template:Armorbar

From MC Public Wiki
Jump to navigation Jump to search

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

Template-info.png Documentation

This template creates an armor bar.

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

See also

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

fr:Modèle:Armures