Template:Hp: Difference between revisions
Jump to navigation
Jump to search
(add temphp category) |
(Simplify.) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly>{{Icon|HP Icon.png|{{{size|25}}}}} {{{1|}}} {{#ifeq:{{{1|}}}|1|[[Hit Points|Hit Point]]|[[Hit Points]]}}</includeonly><noinclude> | ||
Represents HP or Temp HP. See also [[Template:Temp hp]] for | Represents HP or Temp HP. See also [[Template:Temp hp]] for the equivalent template for temporary HP. | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 14: | Line 7: | ||
|- | |- | ||
| <code><nowiki>{{Hp}}</nowiki></code> || {{Hp}} | | <code><nowiki>{{Hp}}</nowiki></code> || {{Hp}} | ||
|- | |- | ||
| <code><nowiki>{{Hp|1}}</nowiki></code> || {{Hp|1}} | | <code><nowiki>{{Hp|1}}</nowiki></code> || {{Hp|1}} | ||
Line 21: | Line 12: | ||
| <code><nowiki>{{Hp|2}}</nowiki></code> || {{Hp|2}} | | <code><nowiki>{{Hp|2}}</nowiki></code> || {{Hp|2}} | ||
|- | |- | ||
| <code><nowiki>{{Hp| | | <code><nowiki>{{Hp|2d4}}</nowiki></code> || {{Hp|2d4}} | ||
|- | |- | ||
| <code><nowiki>{{Hp|3|size=40}}</nowiki></code> || {{Hp|3|size=40}} | | <code><nowiki>{{Hp|3|size=40}}</nowiki></code> || {{Hp|3|size=40}} |
Revision as of 21:07, 10 October 2023
Represents HP or Temp HP. See also Template:Temp hp for the equivalent template for temporary HP.
Code | Result |
---|---|
{{Hp}} |
Hit Points |
{{Hp|1}} |
1 Hit Point |
{{Hp|2}} |
2 Hit Points |
{{Hp|2d4}} |
2d4 Hit Points |
{{Hp|3|size=40}} |
3 Hit Points |
Template data
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
value | 1 | The number of hitpoints to represent. | Number | optional |
size | size | The icon size.
| Unknown | optional |
plural | plural | If specified, will force plural. | Boolean | optional |
temp | temp | If specified, will format as temporary HP | Unknown | optional |
text | text | If specified, will replace the number with this text instead. | Unknown | optional |