Difference between revisions of "Template:Armor"

From Mine Blocks Wiki
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!

(Undo revision 28115 by Tobias Alcaraz (talk))
Tag: Undo
Line 6: Line 6:
Β 
| 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]])
Β 
| 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]])
Β 
| 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]])
βˆ’
| #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]] Γ— {{{1}}})
Β 
}}</includeonly><noinclude>
Β 
}}</includeonly><noinclude>
Β 
== About ==
Β 
== About ==

Revision as of 19:50, 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 (πŸ›‘ Γ— 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 (πŸ›‘ Γ— 6)