Template:Hunger

From Mine Blocks Wiki
Revision as of 11:32, 5 July 2022 by Tobias Alcaraz (talk | contribs) (Created page with "{{#ifexpr: {{{1}}} > 0 | 12x12px|class=item-icon pixel|link=Hunger}}{{#ifexpr: {{{1}}} > 1.49 | File:ui-hunger.png|12x12px|class=item-icon pixel|link=...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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!

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>}}. 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.

Examples

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

Rounding examples:

  • {{Hunger|1.25}}Ui-hunger.png
  • {{Hunger|1.5}}Ui-hunger.pngUi-hunger.png
  • {{Hunger|1.75}}Ui-hunger.pngUi-hunger.png