A template that displays health values in a similar fashion to Terraria.
Usage
{{ hp | <health value> | small = 1 (optional) | link = 1 (optional) }}
Parameter | Description | Type | Status | |
---|---|---|---|---|
Health value | 1 | Health value to display.
| Number | required |
Compressed | small | Reduces the display to a compact format, useful when space is an issue.
| Boolean | optional |
Linked | link | Makes the hearts link to Health and removes the hover text.
| Boolean | optional |
This template prefers inline formatting of parameters.
Examples
{{hp|100}}
returns{{hp|100|small=1}}
returns{{hp|460}}
returns
{{hp|460|small=1}}
returns
Notes
- The standard form of the template cannot round values and does not account for the Lifeforce Potion. Between 0 and 400, use increments of 20. Between 400 and 500, increments of 5.
- The small parameter will allow rounded values, but rounds down regardless of value, i.e,
{{hp|119|small=1}}
returns
- The small parameter will allow rounded values, but rounds down regardless of value, i.e,
- By default, the template's output is provided with a hover text, displaying the health value that was used as the input. Use the parameter
link=1
to suppress this hover text and make the icons clickable:
{{hp|100|link=1}}
returns{{hp|460|small=1|link=1}}
returns