Template:Hunger
{{{1}}} (Expression error: Unrecognized punctuation character "{". {{#ifexpr: {{{1}}} > 1.5 or {{{1}}} = 1.5 | } }Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". Expression error: Unrecognized punctuation character "{". 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
{{#ifexpr: 0 > 1.5 or 0 = 1.5 | } }
Expression error: Unexpected number. 0 × )
{{#ifexpr: 1 > 1.5 or 1 = 1.5 | } }
Expression error: Unexpected number. 1 × )
{{#ifexpr: 2 > 1.5 or 2 = 1.5 | } }
Expression error: Unexpected number. 2 × )
{{#ifexpr: 3 > 1.5 or 3 = 1.5 | } }
Expression error: Unexpected number. 3 × )
{{#ifexpr: 4 > 1.5 or 4 = 1.5 | } }
Expression error: Unexpected number.
4 × )
{{#ifexpr: 5 > 1.5 or 5 = 1.5 | } }
Expression error: Unexpected number. 5 × )
{{#ifexpr: 6 > 1.5 or 6 = 1.5 | } }
Expression error: Unexpected number.
6 × )
{{#ifexpr: 7 > 1.5 or 7 = 1.5 | } }
Expression error: Unexpected number. 7 × )
{{#ifexpr: 8 > 1.5 or 8 = 1.5 | } } Expression error: Unexpected number. 8 × )
{{#ifexpr: 9 > 1.5 or 9 = 1.5 | } } Expression error: Unexpected number. 9 × )
{{#ifexpr: 10 > 1.5 or 10 = 1.5 | } } Expression error: Unexpected number. )
Rounding examples:
{{#ifexpr: 1.25 > 1.5 or 1.25 = 1.5 | } }
Expression error: Unexpected number. 1.25 × )
{{#ifexpr: 1.5 > 1.5 or 1.5 = 1.5 | } }
Expression error: Unexpected number. 1.5 × )
{{#ifexpr: 14 > 1.5 or 14 = 1.5 | } } Expression error: Unexpected number. 14 × )
Poisoned examples:
{{#ifexpr: 5 > 1.5 or 5 = 1.5 | } }
Expression error: Unexpected number. 5 × )
{{#ifexpr: 6.5 > 1.5 or 6.5 = 1.5 | } }
Expression error: Unexpected number. 6.5 × )
{{#ifexpr: 3 > 1.5 or 3 = 1.5 | } }