Template:Temp hp: Difference between revisions

From bg3.wiki
Jump to navigation Jump to search
(Create)
 
(Simplify.)
Line 1: Line 1:
<includeonly>{{Hp|{{{1|}}}|size={{{size|25}}}|temp=t|plural={{{plural|}}}|text={{{text|}}}}}</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 defaults to displaying temp hp. See the Hp template for options.
Just like [[Template:Hp]], but for temp hp. See the Hp template for options.


{| class="wikitable"
== Template data ==
! 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|1|plural=t}}</nowiki></code> || {{Temp hp|1|plural=t}}
|-
| <code><nowiki>{{Temp hp|text=2d4}}</nowiki></code> || {{Temp hp|text=2d4}}
|-
| <code><nowiki>{{Temp hp|3|size=40}}</nowiki></code> || {{Temp hp|3|size=40}}
|}


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
<templatedata>
{
"params": {
"1": {
"label": "value",
"description": "The number of hitpoints to represent.",
"type": "number"
},
"size": {
"description": "The icon size.",
"default": "25"
}
},
"paramOrder": [
"1",
"size"
],
"format": "inline"
}
</templatedata></noinclude>

Revision as of 21:11, 10 October 2023

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

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