Template:Temp hp: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Simplify.)
(Add back examples)
Line 1: Line 1:
<includeonly>{{Icon|HP Icon.png|{{{size|25}}}}} {{{1|}}} {{#ifeq:{{{1|}}}|1|[[Temporary Hit Point]]|[[Temporary Hit Point]]}}</includeonly><noinclude>
<includeonly>{{Icon|HP Icon.png|{{{size|25}}}}} {{{1|}}} {{#ifeq:{{{1|}}}|1|[[Temporary Hit Point]]|[[Temporary Hit Point]]}}</includeonly><noinclude>
Just like [[Template:Hp]], but for temp hp. See the Hp template for options.
Just like [[Template:Hp]], but for temp hp. See the Hp template for options.
{| class="wikitable"
! Code !! Result
|-
| <code><nowiki>{{Temp hp}}</nowiki></code> || {{Temp hp}}
|-
| <code><nowiki>{{Temp hp|1}}</nowiki></code> || {{Temp hp|1}}
|-
| <code><nowiki>{{Temp hp|2}}</nowiki></code> || {{Temp hp|2}}
|-
| <code><nowiki>{{Temp hp|2d4}}</nowiki></code> || {{Temp hp|2d4}}
|-
| <code><nowiki>{{Temp hp|3|size=40}}</nowiki></code> || {{Temp hp|3|size=40}}
|}


== Template data ==
== Template data ==

Revision as of 21:11, 10 October 2023

Just like Template:Hp, but for temp hp. See the Hp template for options.

Code Result
{{Temp hp}} HP Icon.png Temporary Hit Point
{{Temp hp|1}} HP Icon.png 1 Temporary Hit Point
{{Temp hp|2}} HP Icon.png 2 Temporary Hit Point
{{Temp hp|2d4}} HP Icon.png 2d4 Temporary Hit Point
{{Temp hp|3|size=40}} HP Icon.png 3 Temporary Hit Point

Template data

No description.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
value1

The number of hitpoints to represent.

Numberoptional
sizesize

The icon size.

Default
25
Unknownoptional