模板:Hp/doc
跳至導覽
跳至搜尋
A template that displays health values in a similar fashion to Terraria.
Usage
{{ hp | <health value> | small = 1 (optional) | link = 1 (optional) }}
參數 | 描述 | 類型 | 狀態 | |
---|---|---|---|---|
Health value | 1 | Health value to display.
| 數字 | 必填 |
Compressed | small | Reduces the display to a compact format, useful when space is an issue.
| 布爾值 | 可選 |
Linked | link | Makes the hearts link to Health and removes the hover text.
| 布爾值 | 可選 |
此模板首選參數行內格式。
Examples
{{hp|100}}
returns{{hp|100|small=1}}
returns× 5{{hp|460}}
returns
{{hp|460|small=1}}
returns× 20 + × 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× 5
- 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