Difference between revisions of "Template:Armor"
Jump to navigation
Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!
(Re-wrote template just like {{Health}} it now can have custom icon sizes too with an unnamed parameter) |
m |
||
Line 1: | Line 1: | ||
<includeonly>{{#switch: {{{1}}} | <includeonly>{{#switch: {{{1}}} | ||
| 0 = 0 ([[File:ui-armor-empty.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|0 armor points]]) | | 0 = 0 ([[File:ui-armor-empty.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|0 armor points]]) | ||
− | | 1 = 1 ([[File:ui-armor | + | | 1 = 1 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|0.5 armor points]]) |
| 2 = 2 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1 armor point]]) | | 2 = 2 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1 armor point]]) | ||
− | | 3 = 3 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1.5 armor points]][[File:ui-armor | + | | 3 = 3 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1.5 armor points]]) |
| 4 = 4 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2 armor points]]) | | 4 = 4 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2 armor points]]) | ||
− | | 5 = 5 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2.5 armor points]][[File:ui-armor | + | | 5 = 5 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|2.5 armor points]]) |
| 6 = 6 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]]) | | 6 = 6 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3 armor points]]) | ||
− | | 7 = 7 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor | + | | 7 = 7 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|3.5 armor points]]) |
| 8 = 8 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]]) | | 8 = 8 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4 hears]]) | ||
− | | 9 = 9 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor | + | | 9 = 9 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|4.5 armor points]]) |
| 10 = 10 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]]) | | 10 = 10 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|5 armor points]]) | ||
| #default = {{{1}}} ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1 armor point]] × {{#expr: {{{1}}} / 2}}) | | #default = {{{1}}} ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=🛡|link=|1 armor point]] × {{#expr: {{{1}}} / 2}}) |
Revision as of 19:06, 10 October 2022
About
This template serves to display armor points in a page.
Usage
The syntax of this template is {{Armor|<number>|<size>}}
. If the value is higher than 10
, it will display n × <armor>
where n
is the number you specified.
Examples
{{Armor|0}}
→ 0 (){{Armor|1}}
→ 1 (){{Armor|2}}
→ 2 (){{Armor|3}}
→ 3 (){{Armor|4}}
→ 4 (){{Armor|5}}
→ 5 (){{Armor|6}}
→ 6 (){{Armor|7}}
→ 7 (){{Armor|8}}
→ 8 (){{Armor|9}}
→ 9 (){{Armor|10}}
→ 10 ()
Rounding examples:
{{Armor|1.25}}
→ 1.25 ( × 0.625){{Armor|1.5}}
→ 1.5 ( × 0.75){{Armor|1.75}}
→ 1.75 ( × 0.875)
More than 20 armor points:
{{Armor|20.5}}
→ 20.5 ( × 10.25){{Armor|30}
→ 30 ( × 15){{Armor|600}}
→ 600 ( × 300)
Custom icon size:
{{Armor|6|16x16px}}
→ 6 ()