Template:Hunger: Difference between revisions

From Create: Minecraft Mod Wiki
Jump to navigation Jump to search
Create: Minecraft Mod Wiki>Joker876
Created page with "<includeonly><span class="nowrap">{{#if: {{{notag|}}} || {{#if: {{{1|}}} | {{{1}}} | 0 }} ( }}{{hungerbar |{{#if: {{{1|}}} | {{#ifexpr: {{{1}}} > 10 | 2 | {{{1}}} }} | 0 }} |{..."
 
BoxWithout (talk | contribs)
m 1 revision imported
 
(No difference)

Latest revision as of 21:33, 14 February 2025

[view | edit | history | purge]Documentation

This template displays hunger points and visualizes these with the help of a hunger bar.

For a more compact display, all hunger point values above 10 (5 drumsticks) are replaced by 🍗 × [hunger / 2].

Parameter Function Default value
1 Amount of icons to show. 0
2 Size of icons. 9px
poisoned Show yellow-green hunger icons. 0
notag Remove number and parenthesis. 0
total Total amount of shanks to show, any more than the set amount in {{{1}}} are shown as empty. 20
Code Result
{{hunger}} 0 (🍗)
{{hunger|0}} 0 (🍗)
{{hunger|4}} 4 (🍗🍗)
{{hunger|4|total=20}} 4 (🍗🍗🍗🍗🍗🍗🍗🍗🍗🍗)
{{hunger|7|poisoned=1}} 7 (🍗🍗🍗🍗)
{{hunger|4|18px}} 4 (🍗🍗)
{{hunger|20|notag=1}} 🍗 × 10
{{hunger|26|notag=1}} 🍗 × 13
{{hunger|20}} 20 (🍗 × 10)
{{hunger|24}} 24 (🍗 × 12)
{{hunger|41}} 41 (🍗 × 20.5)
[view | edit | history | purge]The above documentation is transcluded from Template:Hunger/doc.