Template:Armorbar/doc

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

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

fr:Modèle:Armures/doc