Template:Armorbar

Revision as of 18:31, 25 July 2015 by FantasyTeddy (talk | contribs) (Created page with "<includeonly>{{#invoke: iconbar | bar | full = Armor.svg | half = Half Armor.svg | empty = Empty Armor.svg | size = {{ #if: {{{2|}}} | {{{2}}} | 18px }} | value = {{{1|}}}...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
[view | edit | history | purge]Documentation
This template uses Module:Iconbar, a script written in Lua.
Please see wp:Lua and mw:Extension:Scribunto to learn more.

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}} Empty Armor.svg
{{armorbar|0|9px}} Empty Armor.svg
{{armorbar|1}} Half Armor.svg
{{armorbar|2}} Armor.svg
{{armorbar|5}} Armor.svgArmor.svgHalf Armor.svg
{{armorbar|20}} Armor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svg
{{armorbar|10|9px}} Armor.svgArmor.svgArmor.svgArmor.svgArmor.svg
{{armorbar|6|45px}} Armor.svgArmor.svgArmor.svg

See also

[view | edit | history | purge]The above documentation is transcluded from Template:Armorbar/doc.
Cookies help us deliver our services. By using our services, you agree to our use of cookies.

Need wiki hosting?

Do you need a wiki for your Minecraft mod/gaming wiki? We'll host it for free! Contact us.

Other wikis

Indie-game wikis
Powered by Indie Wikis