Template:Armorbar: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
Created page with "<includeonly>{{#invoke: iconbar | bar | full = Armor (icon).png | size = {{{2|18}}} | value = {{{1}}} | title = {{#expr:{{{1|0}}}/2}} armor point{{#ifeq: {{{1}}} | 2 || s }..."
 
BoxWithout (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 18:52, 14 February 2025

[view | edit | history | purge]Documentation

Lua error in package.lua at line 80: module 'Dev:Arguments' not found. 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[edit source]

Template:Iconbar see also

[view | edit | history | purge]The above documentation is transcluded from Template:Armorbar/doc.