Template:Hp
Jump to navigation
Jump to search
A template that displays health values in a similar fashion to Terraria.
Usage
{{ hp | <health value> | small = 0/1 (optional) | link = 0/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
Code | Result |
---|---|
{{ hp | 100 }} |
|
{{ hp | 100 | small = 1 }} |
× 5 |
{{ hp | 100 | link = 1 }} |
|
{{ hp | 460 }} |
|
{{ hp | 460 | small = 1 | link = 1 }} |
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× 5
- The small parameter will allow rounded values, but rounds down regardless of value, i.e,