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!
(Alt text + hover text + removed links) |
(Allowing to display 10 icons in a row because otherwise it can become confusing) Β |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
β | {{{1}}} ( | + | <includeonly>{{#switch: {{{1}}} |
Β | + | | 0 = 0 ([[File:ui-armor-empty.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|0 armor points]]) | |
Β | + | | 1 = 1 ([[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=|2 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|2 armor points]]) | |
Β | + | | 3 = 3 ([[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]]) | |
Β | + | | 4 = 4 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|4 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|4 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|4 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|4 armor points]]) | |
Β | + | | 5 = 5 ([[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]]) | |
Β | + | | 6 = 6 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|6 armor points]]) | |
Β | + | | 7 = 7 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|7 armor points]]) | |
Β | + | | 8 = 8 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|8 armor points]]) | |
Β | + | | 9 = 9 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|9 armor points]]) | |
Β | + | | 10 = 10 ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]][[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|10 armor points]]) | |
Β | + | | #default = {{{1}}} ([[File:ui-armor.png|{{{2|12x12px}}}|class=item-icon pixel|alt=π‘|link=|1 armor point]] Γ {{{1}}}) | |
Β | + | }}</includeonly><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 | + | The syntax of this template is <code><nowiki>{{Armor|<number>|<size>}}</nowiki></code>. If the value is higher than <code>10</code>, it will display <code><nowiki>n Γ <armor></nowiki></code> where <code>n</code> is the number you specified. |
Β | Β | ||
Β | == Examples == | Β | == Examples == |
Line 14: | Line 27: | ||
Β | * <code><nowiki>{{Armor|5}}</nowiki></code> β {{Armor|5}} | Β | * <code><nowiki>{{Armor|5}}</nowiki></code> β {{Armor|5}} |
Β | * <code><nowiki>{{Armor|6}}</nowiki></code> β {{Armor|6}} | Β | * <code><nowiki>{{Armor|6}}</nowiki></code> β {{Armor|6}} |
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | ||
Β | Β | ||
Β | Rounding examples: | Β | Rounding examples: |
Line 23: | Line 32: | ||
Β | * <code><nowiki>{{Armor|1.5}}</nowiki></code> β {{Armor|1.5}} | Β | * <code><nowiki>{{Armor|1.5}}</nowiki></code> β {{Armor|1.5}} |
Β | * <code><nowiki>{{Armor|1.75}}</nowiki></code> β {{Armor|1.75}} | Β | * <code><nowiki>{{Armor|1.75}}</nowiki></code> β {{Armor|1.75}} |
Β | + | ||
Β | + | More than 20 armor points: | |
Β | + | * <code><nowiki>{{Armor|20.5}}</nowiki></code> β {{Armor|20.5}} | |
Β | + | * <code><nowiki>{{Armor|30}</nowiki></code> β {{Armor|30}} | |
Β | + | * <code><nowiki>{{Armor|600}}</nowiki></code> β {{Armor|600}} | |
Β | + | ||
Β | + | Custom icon size: | |
Β | + | * <code><nowiki>{{Armor|6|16x16px}}</nowiki></code> β {{Armor|6|16x16px}} | |
Β | </noinclude> | Β | </noinclude> |
Latest revision as of 19:53, 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 ()
Rounding examples:
{{Armor|1.25}}
β 1.25 ( Γ 1.25){{Armor|1.5}}
β 1.5 ( Γ 1.5){{Armor|1.75}}
β 1.75 ( Γ 1.75)
More than 20 armor points:
{{Armor|20.5}}
β 20.5 ( Γ 20.5){{Armor|30}
β 30 ( Γ 30){{Armor|600}}
β 600 ( Γ 600)
Custom icon size:
{{Armor|6|16x16px}}
β 6 ()