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!
(Added alt and tooltip text) |
|||
Line 1: | Line 1: | ||
β | {{{1}}} ({{#ifexpr: {{{1}}} > 0 and {{{1}}} < 10 or {{{1}}} = 0 or {{{1}}} = 10|{{#ifexpr: {{{1}}} > 0 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]] | {{#ifexpr: {{{1}}} = 0 or {{{1}}} < 0 | [[File:ui-hunger-empty.png|12x12px|class=item-icon pixel|link=Hunger]]}}}}{{#ifexpr: {{{1}}} > 1.5 or {{{1}}} = 1.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 2.5 or {{{1}}} = 2.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 3.5 or {{{1}}} = 3.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 4.5 or {{{1}}} = 4.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 5.5 or {{{1}}} = 5.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 6.5 or {{{1}}} = 6.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 7.5 or {{{1}}} = 7.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 8.5 or {{{1}}} = 8.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}{{#ifexpr: {{{1}}} > 9.5 and {{{1}}} < 10 or {{{1}}} = 9.5 or {{{1}}} = 10 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}}|{{{1}}} Γ [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|link=Hunger]]}})<noinclude> | + | {{{1}}} ({{#ifexpr: {{{1}}} > 0 and {{{1}}} < 10 or {{{1}}} = 0 or {{{1}}} = 10|{{#ifexpr: {{{1}}} > 0 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]] | {{#ifexpr: {{{1}}} = 0 or {{{1}}} < 0 | [[File:ui-hunger-empty.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}}}{{#ifexpr: {{{1}}} > 1.5 or {{{1}}} = 1.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 2.5 or {{{1}}} = 2.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 3.5 or {{{1}}} = 3.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 4.5 or {{{1}}} = 4.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 5.5 or {{{1}}} = 5.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 6.5 or {{{1}}} = 6.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 7.5 or {{{1}}} = 7.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 8.5 or {{{1}}} = 8.5 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}{{#ifexpr: {{{1}}} > 9.5 and {{{1}}} < 10 or {{{1}}} = 9.5 or {{{1}}} = 10 | [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}}|{{{1}}} Γ [[File:ui-hunger{{#ifeq: {{{poisoned}}}|true|-poisoned}}.png|12x12px|class=item-icon pixel|alt=π|link=Hunger|{{{1}}} hunger points]]}})<noinclude> |
Β | == About == | Β | == About == |
Β | This template serves to display hunger points in a page. | Β | This template serves to display hunger points in a page. |
Revision as of 22:23, 5 July 2022
{{{1}}} (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>|<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:
Poisoned examples: