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!

Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
The syntax of this template is <code>{{Armor|<number>}}</code>. If the value given is <code>0</code> or lower, or higher than <code>10</code>, it will display no icons and 10 armor icons respectively.
+
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 nothing, and if the value is higher than <code>10</code>, it will display 10 armor icons.
  
 
== Examples ==
 
== Examples ==
* <code><nowiki>{{Armor|0}}</nowiki></nowiki></code> → {{Armor|0}}
+
* <code><nowiki>{{Armor|0}}</nowiki></code> → {{Armor|0}}
* <code><nowiki>{{Armor|1}}</nowiki></nowiki></code> → {{Armor|1}}
+
* <code><nowiki>{{Armor|1}}</nowiki></code> → {{Armor|1}}
* <code><nowiki>{{Armor|2}}</nowiki></nowiki></code> → {{Armor|2}}
+
* <code><nowiki>{{Armor|2}}</nowiki></code> → {{Armor|2}}
* <code><nowiki>{{Armor|3}}</nowiki></nowiki></code> → {{Armor|3}}
+
* <code><nowiki>{{Armor|3}}</nowiki></code> → {{Armor|3}}
* <code><nowiki>{{Armor|4}}</nowiki></nowiki></code> → {{Armor|4}}
+
* <code><nowiki>{{Armor|4}}</nowiki></code> → {{Armor|4}}
* <code><nowiki>{{Armor|5}}</nowiki></nowiki></code> → {{Armor|5}}
+
* <code><nowiki>{{Armor|5}}</nowiki></code> → {{Armor|5}}
* <code><nowiki>{{Armor|6}}</nowiki></nowiki></code> → {{Armor|5}}
+
* <code><nowiki>{{Armor|6}}</nowiki></code> → {{Armor|5}}
* <code><nowiki>{{Armor|7}}</nowiki></nowiki></code> → {{Armor|7}}
+
* <code><nowiki>{{Armor|7}}</nowiki></code> → {{Armor|7}}
* <code><nowiki>{{Armor|8}}</nowiki></nowiki></code> → {{Armor|8}}
+
* <code><nowiki>{{Armor|8}}</nowiki></code> → {{Armor|8}}
* <code><nowiki>{{Armor|9}}</nowiki></nowiki></code> → {{Armor|9}}
+
* <code><nowiki>{{Armor|9}}</nowiki></code> → {{Armor|9}}
* <code><nowiki>{{Armor|10}}</nowiki></nowiki></code> → {{Armor|10}}
+
* <code><nowiki>{{Armor|10}}</nowiki></code> → {{Armor|10}}
 
</noinclude>
 
</noinclude>

Revision as of 09:42, 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 nothing, and if the value is higher than 10, it will display 10 armor icons.

Examples

  • {{Armor|0}}
  • {{Armor|1}}Ui-armor.png
  • {{Armor|2}}Ui-armor.pngUi-armor.png
  • {{Armor|3}}Ui-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|4}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|5}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|6}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|7}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|8}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|9}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png
  • {{Armor|10}}Ui-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.pngUi-armor.png