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:{{...") |
Immortality (talk | contribs) |
||
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}}}}}|''???''}} | ||
− | }}}}}} [[Hit Points|{{ | + | }}}}}} [[Hit Points|{{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}}}}}}} [[Magic Points|{{Color|Green|MP}}]]| {{Color|Green|~{{formatnum:{{{low mp}}}}}}} [[Magic Points|{{Color|Green|MP}}]]}}|{{#if:{{{high mp|}}}| {{Color|Green|~{{formatnum:{{{high mp}}}}}}} [[Magic Points|{{Color|Green|MP}}]]| {{Color|Green|''???''}} [[Magic Points|{{Color|Green|MP}}]]}} |
}}}}<noinclude> | }}}}<noinclude> | ||
[[Category:Templates|{{PAGENAME}}]] | [[Category:Templates|{{PAGENAME}}]] |
Revision as of 20:24, 21 December 2016
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.