Hello there! We are conducting a survey to better understand the user experience in making a first edit. If you have ever made an edit on Gamepedia, please fill out the survey. Thank you!

Template:Armor

(tagline)
(jumpto) (jumptonavigation)(comma-separator) (jumptosearch)

0 ()

Template-info.png Documentation

This template displays Minecraft armor shields for the provided amount of armor protection. This works inline so it can be used in prose and in infoboxes.

Parameters[(visualeditor-ca-editsource-section)]

  • 1: The amount of armor to fill in. This displays in halves, just like in Vanilla Minecraft. For example, 1 is Half Armor.svg and 2 is Armor.svg. If it is greater than 20, it will truncate for the sake of readability, reliability, and performance. For example, 25 is Armor.svg × 12.5. Defaults to 0.
  • plain: Set to not display the numerical armor value and parentheses wrapping. When set, will display empty armor bars until it reaches the max.
  • size: The size of the bars to use. Defaults to 9px. Only provide the number; it uses pixels as its unit.
  • max: The total number of bars to show. This is useful when displaying how much armor is provided by something in comparison to the total number the player has (20). Defaults to 20. This value must be greater than or equal to the provided value for the first argument. Does not work unless plain is also set.

Examples[(visualeditor-ca-editsource-section)]

Code Result
{{Armor|1|max=1|size=81|plain=true}} Half Armor.svg
{{Armor|15}} 15 (Armor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgHalf Armor.svg)
{{Armor|15|plain=true}} Armor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgArmor.svgHalf Armor.svgEmpty Armor.svgEmpty Armor.svgEmpty Armor.svg
{{Armor|25}} 25 (Armor.svg × 12.5)
{{Armor|25|plain=true}} Armor.svg × 12.5