Difference between revisions of "Template:Hunger"
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!
(Updated sizing spec as with Template:Health) Β |
|||
(19 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
β | {{# | + | <includeonly>{{#switch: {{{1}}} |
β | + | | 0 = 0 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}-empty.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|0 hunger points]]) | |
β | + | | 1 = 1 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|1 hunger point]]) | |
β | = | + | | 2 = 2 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|2 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|2 hunger points]]) |
β | + | | 3 = 3 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|3 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|3 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|3 hunger points]]) | |
β | Β | + | | 4 = 4 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|4 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|4 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|4 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|4 hunger points]]) |
β | + | | 5 = 5 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|5 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|5 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|5 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|5 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|5 hunger points]]) | |
β | + | | 6 = 6 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|6 hunger points]]) | |
β | Β | + | | 7 = 7 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|7 hunger points]]) |
β | + | | 8 = 8 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|8 hunger points]]) | |
β | + | | 9 = 9 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|9 hunger points]]) | |
β | + | | 10 = 10 ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]][[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|10 hunger points]]) | |
β | + | | #default = {{{1}}} ([[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|{{{2|12}}}x{{{2|12}}}px|class=item-icon pixel|alt=π‘|link=|1 hunger point]] Γ {{{1}}}) | |
β | + | }}</includeonly><noinclude> | |
β | + | {{Documentation}} | |
β | + | <!-- Put categories/interwiki on the documentation page. --> | |
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | Β | |
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | Β | |
β | Β | ||
β | Β | ||
β | Β | ||
β | Β | ||
Β | </noinclude> | Β | </noinclude> |
Latest revision as of 14:09, 11 July 2023
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 ()