Difference between revisions of "Template:Armor"
Line 1: | Line 1: | ||
− | {{#ifexpr: {{{1}}} > 0 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 1.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 2.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 3.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 4.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 5.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 6.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 7.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 8.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 9.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}<noinclude> | + | {{#ifexpr: {{{1}}} > 0 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]] | {{#ifexpr: {{{1}}} = 0 or {{{1}}} < 0 | [[File:ui-armor-empty.png|12x12px|class=item-icon pixel|link=Armor]]}}}}{{#ifexpr: {{{1}}} > 1.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 2.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 3.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 4.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 5.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 6.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 7.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 8.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}{{#ifexpr: {{{1}}} > 9.49 | [[File:ui-armor.png|12x12px|class=item-icon pixel|link=Armor]]}}<noinclude> |
== About == | == About == | ||
This template serves to display armor points in a page. | This template serves to display armor points in a page. | ||
== Usage == | == Usage == | ||
− | The syntax of this template is <code><nowiki>{{Armor|<number>}}</nowiki></code>. If the value given is <code>0</code> or lower, it will display | + | The syntax of this template is <code><nowiki>{{Armor|<number>}}</nowiki></code>. If the value given is <code>0</code> or lower, it will display an empty armor icon, and if the value is higher than <code>10</code>, it will display 10 armor icons. It can also round to the nearest integer. |
== Examples == | == Examples == |
Revision as of 11:52, 5 July 2022
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}}
→{{Armor|1}}
→{{Armor|2}}
→{{Armor|3}}
→{{Armor|4}}
→{{Armor|5}}
→{{Armor|6}}
→{{Armor|7}}
→{{Armor|8}}
→{{Armor|9}}
→{{Armor|10}}
→
Rounding examples: