Difference between revisions of "Template:HPMP"
From HomepointXI Wiki
Immortality (talk | contribs) (Created page with "{{Fire|{{#switch:{{lc:{{{low hp|}}}}} |no = ''???'' |none = ''???'' |? = ''???'' |#default = {{#if:{{{low hp|}}}|{{#if:{{{high hp|}}}|{{formatnum:{{{low hp}}}}}~{{formatnum:{{...") |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{color|Red|{{#switch:{{lc:{{{low hp|}}}}} |
|no = ''???'' | |no = ''???'' | ||
|none = ''???'' | |none = ''???'' | ||
|? = ''???'' | |? = ''???'' | ||
|#default = {{#if:{{{low hp|}}}|{{#if:{{{high hp|}}}|{{formatnum:{{{low hp}}}}}~{{formatnum:{{{high hp}}}}}|~{{formatnum:{{{low hp}}}}}}}|{{#if:{{{high hp|}}}|~{{formatnum:{{{high hp}}}}}|''???''}} | |#default = {{#if:{{{low hp|}}}|{{#if:{{{high hp|}}}|{{formatnum:{{{low hp}}}}}~{{formatnum:{{{high hp}}}}}|~{{formatnum:{{{low hp}}}}}}}|{{#if:{{{high hp|}}}|~{{formatnum:{{{high hp}}}}}|''???''}} | ||
− | }}}}}} | + | }}}}}} {{color|Red|HP}}<br>{{#switch:{{lc:{{{low mp|}}}}} |
|no = | |no = | ||
|none = | |none = | ||
− | |? ={{ | + | |? ={{Color|Green|''???''}} [[Magic Points|{{Color|green|MP}}]] |
− | |#default = {{#if:{{{low mp|}}}|{{#if:{{{high mp|}}}|{{ | + | |#default = {{#if:{{{low mp|}}}|{{#if:{{{high mp|}}}|{{Color|Green|{{formatnum:{{{low mp}}}}}~{{formatnum:{{{high mp}}}}}}} {{Color|Green|MP}}| {{Color|Green|~{{formatnum:{{{low mp}}}}}}} {{Color|Green|MP}}}}|{{#if:{{{high mp|}}}| {{Color|Green|~{{formatnum:{{{high mp}}}}}}} {{Color|Green|MP}}| {{Color|Green|''???''}} {{Color|Green|MP}}}} |
}}}}<noinclude> | }}}}<noinclude> | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] |
Latest revision as of 15:10, 4 August 2021
??? HP
??? MP
Usage
{{HPMP |low hp = |high hp = |low mp = |high mp = }}
- Automatically formats values for Mob hit points and magic points (if any), given in approximates due to the variant levels of most mob spawns:
- Displays "???" if "no" or "none" is given as the low value or if no values are given for HP, displays nothing for MP.
- Displays "~<value>" if only the low value or high value is given.
- Displays "<low value>~<high value>" if both values are given.