Terraria Wiki

  • Discussions are now available on the Terraria Wiki.
  • Miss the old Hydra Skin? Try out our Hydralize gadget! Visit the preferences page while logged in and turn on the gadget.

READ MORE

Terraria Wiki
Advertisement
This template is i18n-ready, which means it is easy to localize for different languages. Please see I18n & l10n for templates to learn more.
See Template:Hp/l10n for the localization of this template.
Template-info Documentation The documentation below is transcluded from Template:Hp/doc. (edit | history)

A template that displays health values in a similar fashion to Terraria.

Usage

{{ hp | <health value> | small = 1 (optional) | link = 1 (optional) }}

ParameterDescriptionTypeStatus
Health value1
Health value to display.
Example:
150
Number
required
Compressedsmall
Reduces the display to a compact format, useful when space is an issue.
Auto value:
True (1/y/yes)
Boolean
optional

This template prefers inline formatting of parameters.

Examples

  • {{hp|100}} returns
    PlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeart
  • {{hp|100|small=1}} returns
    Heart × 5
  • {{hp|460}} returns
PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeart2PlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeart
  • {{hp|460|small=1}} returns
    Heart × 20 + Life Fruit × 12

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
      Heart × 5
  • 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
PlayerHeartPlayerHeartPlayerHeartPlayerHeartPlayerHeart
{{hp|460|small=1|link=1}} returns
Heart × 20 + Life Fruit × 12
Advertisement