Template:Armor

From Mine Blocks Wiki
Revision as of 23:39, 5 July 2022 by Tobias Alcaraz (talk | contribs) (Alt text + hover text + removed links)
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!

{{{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 (πŸ›‘πŸ›‘)