Difference between revisions of "Template:Hunger"

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 27: Line 27:
  
 
Poisoned examples:
 
Poisoned examples:
* <code><nowiki>{{Hunger|5|Poisoned}}</nowiki></code> → {{Hunger|5|Poisoned}}
+
* <code><nowiki>{{Hunger|5|poisoned}}</nowiki></code> → {{Hunger|5|poisoned}}
* <code><nowiki>{{Hunger|6.5|Poisoned}}</nowiki></code> → {{Hunger|6.5|Poisoned}}
+
* <code><nowiki>{{Hunger|6.5|poisoned}}</nowiki></code> → {{Hunger|6.5|poisoned}}
* <code><nowiki>{{Hunger|3|Poisoned}}</nowiki></code> → {{Hunger|3|Poisoned}}
+
* <code><nowiki>{{Hunger|3|poisoned}}</nowiki></code> → {{Hunger|3|poisoned}}
 
</noinclude>
 
</noinclude>

Revision as of 11:45, 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 hunger points in a page.

Usage

The syntax of this template is {{Hunger|<number>|<poisoned>?}}. If the value given is 0 or lower, it will display nothing, and if the value is higher than 10, it will display 10 hunger icons. It can also round to the nearest integer. When using the poisoned parameter (no value required), all hunger icons will change to it's poisoned version.

Examples

  • {{Hunger|0}}Ui-hunger-empty.png


  • {{Hunger|1}}Ui-hunger.png


  • {{Hunger|2}}Ui-hunger.png

Ui-hunger.png

  • {{Hunger|3}}Ui-hunger.png

Ui-hunger.pngUi-hunger.png

  • {{Hunger|4}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|5}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|6}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|7}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|8}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|9}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|10}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png Ui-hunger.png

Rounding examples:

  • {{Hunger|1.25}}Ui-hunger.png


  • {{Hunger|1.5}}Ui-hunger.png

Ui-hunger.png

  • {{Hunger|1.75}}Ui-hunger.png

Ui-hunger.png


Poisoned examples:

  • {{Hunger|5|poisoned}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|6.5|poisoned}}Ui-hunger.png

Ui-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.pngUi-hunger.png

  • {{Hunger|3|poisoned}}Ui-hunger.png

Ui-hunger.pngUi-hunger.png