Template:Hunger: Difference between revisions

From Modded Wiki
Jump to navigation Jump to search
default value for param 1 is now 0; added a param bar which replaces param 1 and sets total to 20, for convenience; also, remove some unneeded ifs;
 
m 1 revision imported
Tags: Mobile edit Mobile web edit
 
(No difference)

Latest revision as of 06:29, 23 July 2025

Documentation[view] [edit] [history] [refresh]

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. None
notag Remove number and parenthesis. None
total Total amount of shanks to show, any more than the set amount in |1= are shown as empty. 0
bar Sets |total= to 20 and replaces |1=. Essentially used to display a hunger bar. None
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)

de:Vorlage:HP es:Plantilla:Hambre it:Template:Barra fame ko:틀:Hunger nl:Sjabloon:Hunger pt:Predefinição:Fome ru:Шаблон:Голод uk:Шаблон:Голод

[view] [edit] [history] [refresh]The above documentation is transcluded from Template:Hunger/doc.