Advent of Ascension Wiki

An alpha for 3.6 has been released. Download it here.

READ MORE

Advent of Ascension Wiki
m (special case for 0)
m
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<includeonly>{{#if: {{{1|}}} |
 
<includeonly>{{#if: {{{1|}}} |
{{#ifeq: {{{1}}} | 0 | <span class="nowrap">[[File:Heart.png|link=]]&nbsp;×&nbsp;0</span>
+
<span class="nowrap">{{{1}}}<!--
|<span class="nowrap">{{{1}}}&nbsp;<!--
+
-->{{#if:{{{2|}}} | -{{{2}}} }}<!--
-->([[File:Heart.png|link=]]&nbsp;×&nbsp;{{#expr: {{{1}}}/2}})<!--
+
-->&nbsp;([[File:Heart.png|link=|alt=&hearts;]]&times;{{#expr: {{{1}}}/2}}<!--
  +
-->{{#if:{{{2|}}} | -{{#expr: {{{2}}}/2}} }})</span>
--></span>}}
 
| [[File:Heart.png|link=]]}}</includeonly><noinclude>
+
| [[File:Heart.png|link=|alt=&hearts;]]<!--
  +
-->[[Category:Old usage of HP template]]}}</includeonly><noinclude>
 
{{/doc}}
 
{{/doc}}
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 00:10, 29 January 2021

Template-info.png Documentation

Use {{hp|number}} to display health points, or {{hp|first number|second number}} for a range of health points (such as with weapons that do random damage). Using the template without an argument (e.g. {{hp}}×6) displays an error and automatically adds the page to Category:Old usage of HP template.

Examples

{{hp|20}}

{{hp|15}}

{{hp|0|50}}

Outputs

20 (♥×10)

15 (♥×7.5)

0-50 (♥×0-25)

The above documentation is transcluded from Template:Hp/doc.