Template:Armorbar: Difference between revisions
m (1 revision) |
CraftSpider (talk | contribs) (removed translation link) |
||
Line 9: | Line 9: | ||
[[Category:Image templates]] | [[Category:Image templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 04:05, 12 May 2017
This template uses Module:Iconbar, a script written in the Lua programming language. Please see wp:Lua and mw:Extension:Scribunto to learn more about Lua. |
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}} | |
{{armorbar|0|9px}} | |
{{armorbar|1}} | |
{{armorbar|2}} | |
{{armorbar|5}} | |
{{armorbar|20}} | |
{{armorbar|10|9px}} | |
{{armorbar|6|45px}} |
See also
- {{Armorbar}}
- {{Healthbar}}
- {{Hungerbar}}
- {{Iconbar}}
- Module:Iconbar
The above documentation is transcluded from Template:Armorbar/doc. (edit | history)