Template:Hp: Difference between revisions
Jump to navigation
Jump to search
(add temphp category) |
No edit summary |
||
(3 intermediate revisions by one other user not shown) | |||
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 the equivalent template for temporary HP. | ||
Represents HP or Temp HP. See also [[Template:Temp hp]] for | |||
{| class="wikitable" | {| class="wikitable" | ||
Line 14: | Line 5: | ||
|- | |- | ||
| <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 10: | ||
| <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}} | ||
Line 43: | Line 26: | ||
"description": "The number of hitpoints to represent.", | "description": "The number of hitpoints to represent.", | ||
"type": "number" | "type": "number" | ||
}, | }, | ||
"size": { | "size": { | ||
Line 61: | Line 34: | ||
"paramOrder": [ | "paramOrder": [ | ||
"1", | "1", | ||
"size" | "size" | ||
], | |||
"format": "inline" | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 22:20, 25 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 |