Template:Armorbar/doc

Revision as of 02:12, 2 June 2026 by Carter57 (talk | contribs) (Created page with "{{Documentation header}} {{lua|Iconbar}} This template creates an armor bar. {| class="wikitable" ! Parameter ! Function ! Default value |- | {{p|1}} || Integer armor value between 0 and 32. Empty armor = 0, half armor = 1, full armor = 2, etc. || 0 |- | {{p|2}} || Width of each icon in pixels. || 18 |- | {{p|link}} || Page linked when clicking on an icon. || ''None'' |- | {{p|total}} || Total amount of armor points to be shown. || 0 |} {| class="wikitable" ! Code ! Re...")
(diff) ← Older revision | Latest revision (diff) | Newer revision β†’ (diff)
This is the documentation page. It should be transcluded into Template:Armorbar. See Template:Documentation for more information.
This template uses Module:Iconbar, a script written in Lua.

This template creates an armor bar.

Parameter Function Default value
|1= Integer armor value between 0 and 32. Empty armor = 0, half armor = 1, full armor = 2, etc. 0
|2= Width of each icon in pixels. 18
|link= Page linked when clicking on an icon. None
|total= Total amount of armor points to be shown. 0
Code Result
{{armorbar}} πŸ›‘
{{armorbar|0|9px}} πŸ›‘
{{armorbar|1}} πŸ›‘
{{armorbar|2}} πŸ›‘
{{armorbar|5}} πŸ›‘πŸ›‘πŸ›‘
{{armorbar|5|total=20}} πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘
{{armorbar|20}} πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘
{{armorbar|10|9px}} πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘
{{armorbar|6|45px}} πŸ›‘πŸ›‘πŸ›‘

See also