Template:Hunger

From Mine Blocks Wiki
Revision as of 14:09, 11 July 2023 by Tobias Alcaraz (talk | contribs) (Updated sizing spec as with Template:Health)
(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!

Template-info.png Template documentation Note: parts of or the entire template might not be visible without values provided.

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 with the true value, all hunger icons will change to it's poisoned version.

Examples

  • {{Hunger|0}} β†’ 0 (πŸ›‘)
  • {{Hunger|1}} β†’ 1 (πŸ›‘)
  • {{Hunger|2}} β†’ 2 (πŸ›‘πŸ›‘)
  • {{Hunger|3}} β†’ 3 (πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|4}} β†’ 4 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|5}} β†’ 5 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|6}} β†’ 6 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|7}} β†’ 7 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|8}} β†’ 8 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|9}} β†’ 9 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|10}} β†’ 10 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)

Rounding examples:

  • {{Hunger|1.25}} β†’ 1.25 (πŸ›‘ Γ— 1.25)
  • {{Hunger|1.5}} β†’ 1.5 (πŸ›‘ Γ— 1.5)
  • {{Hunger|14.75}} β†’ 14.75 (πŸ›‘ Γ— 14.75)

Poisoned examples:

  • {{Hunger|5|poisoned=true}} β†’ 5 (πŸ›‘πŸ›‘πŸ›‘πŸ›‘πŸ›‘)
  • {{Hunger|6.5|poisoned=true}} β†’ 6.5 (πŸ›‘ Γ— 6.5)
  • {{Hunger|3|poisoned=true}} β†’ 3 (πŸ›‘πŸ›‘πŸ›‘)