Difference between revisions of "Template:Armor"
(Added numeric value before icons) |
(Alt text + hover text + removed links) |
||
Line 1: | Line 1: | ||
β | {{{1}}} ({{#ifexpr: {{{1}}} > 0 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link= | + | {{{1}}} ({{#ifexpr: {{{1}}} > 0 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]] | {{#ifexpr: {{{1}}} = 0 or {{{1}}} < 0 | [[File:ui-armor-empty.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}}}{{#ifexpr: {{{1}}} > 1.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 2.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 3.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 4.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 5.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 6.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 7.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 8.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}}{{#ifexpr: {{{1}}} > 9.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|alt=π‘|link=|{{{1}}} armor point{{#ifexpr: {{{1}}} = 1||s}}]]}})<noinclude> |
Β | == About == | Β | == About == |
Β | This template serves to display armor points in a page. | Β | This template serves to display armor points in a page. |
Revision as of 22:39, 5 July 2022
{{{1}}} (Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".Expression error: Unrecognized punctuation character "{".)
About
This template serves to display armor points in a page.
Usage
The syntax of this template is {{Armor|<number>}}
. If the value given is 0
or lower, it will display an empty armor icon, and if the value is higher than 10
, it will display 10 armor icons. It can also round to the nearest integer.
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 (){{Armor|1.5}}
β 1.5 (){{Armor|1.75}}
β 1.75 ()