Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Hp

Template page
Revision as of 13:55, 10 October 2023 by Sky (talk | contribs) (Created page with "<includeonly>{{#ifexpr: {{{1|2}}} > 1 | {{#lvardef:plural|true}}}}{{#if:{{{plural|}}}|{{#lvardef:plural|true}}}}{{Icon|HP Icon.png|{{{2|25}}}}} {{{1|}}} {{#if:{{{temp|}}}|Temporary Hit Point{{#if:{{#lvar:plural}}|s}}|Hit Point{{#if:{{#lvar:plural}}|s}}}}</includeonly><noinclude> {{underConstruction}} Represents HP or Temp HP. See also Template:Temp hp for a simpler way to display temporary HP. {| class="wikitable" !...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Represents HP or Temp HP. See also Template:Temp hp for a simpler way to display temporary HP.

Code Result
{{Hp}} HP Icon.png Hit Points
{{Hp|temp=1}} HP Icon.png Temporary Hit Points
{{Hp|1}} HP Icon.png 1 Hit Point
{{Hp|2}} HP Icon.png 2 Hit Points
{{Hp|1|temp=1}} HP Icon.png 1 Temporary Hit Point
{{Hp|2|temp=1}} HP Icon.png 2 Temporary Hit Points
{{Hp|1|plural=t}} HP Icon.png 1 Hit Points
{{Hp|2d4}} Expression error: Unrecognized word "d".HP Icon.png 2d4 Hit Point

Template data

No description.

Template parameters

ParameterDescriptionTypeStatus
value1

The number of hitpoints to represent.

Numberoptional
size2

The icon size.

Default
25
Unknownoptional
pluralplural

If specified, will force plural.

Booleanoptional
temptemp

If specified, will format as temporary HP

Unknownoptional