Template:Armorbar: Difference between revisions

imported>Denatidum
(Created page with "<includeonly>{{iconbar |value={{{value|0}}} |size={{{size|18}}} |full=Armor.svg |half=Half_Armor.svg |empty=Empty_Armor.svg |total={{{total|0}}} |title={{#expr: {{{value|0}}} / 2}} {{#ifeq: {{#expr: {{{value|0}}} / 2}} | 1 | armor point | armor points }} }}</includeonly><noinclude> {{Documentation}} <!-- Put categories on the documentation page --> </noinclude>")
 
imported>Ttv pedro270707
m (Added alt)
 
(5 intermediate revisions by 2 users not shown)
Line 7: Line 7:
|total={{{total|0}}}
|total={{{total|0}}}
|title={{#expr: {{{value|0}}} / 2}} {{#ifeq: {{#expr: {{{value|0}}} / 2}} | 1 | armor point | armor points }}
|title={{#expr: {{{value|0}}} / 2}} {{#ifeq: {{#expr: {{{value|0}}} / 2}} | 1 | armor point | armor points }}
|alt=&#128737;
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
<!-- Put categories on the documentation page -->
<!-- Put categories on the documentation page -->
</noinclude>
</noinclude>

Latest revision as of 00:27, 22 March 2023

[view | edit | history | purge]Documentation

This template implements a Minecraft-like armor bar.

Arguments Edit

Argument Default value Note
size 18 Sets the size of each armor point.
value 0 Sets the amount of armor points.
total 0 Sets the total amount of armor points. Use if empty armor points are needed after the filled armor points.

Usage Edit

Code Result
{{armorbar}} 🛡
{{armorbar|size=9}} 🛡
{{armorbar|value=1}} 🛡
{{armorbar|value=2}} 🛡
{{armorbar|value=5}} 🛡🛡🛡
{{armorbar|value=5|total=10}} 🛡🛡🛡🛡🛡
{{armorbar|value=7|size=45}} 🛡🛡🛡🛡
[view | edit | history | purge]The above documentation is transcluded from Template:Armorbar/doc.