Difference between revisions of "Template:HPMP"

From HomepointXI Wiki
Jump to: navigation, search
(Created page with "{{Fire|{{#switch:{{lc:{{{low hp|}}}}} |no = ''???'' |none = ''???'' |? = ''???'' |#default = {{#if:{{{low hp|}}}|{{#if:{{{high hp|}}}|{{formatnum:{{{low hp}}}}}~{{formatnum:{{...")
 
Line 1: Line 1:
{{Fire|{{#switch:{{lc:{{{low hp|}}}}}
+
{{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|{{Fire|HP}}]]<br>{{#switch:{{lc:{{{low mp|}}}}}
+
}}}}}} [[Hit Points|{{color|Red|HP}}]]<br>{{#switch:{{lc:{{{low mp|}}}}}
 
|no =  
 
|no =  
 
|none =  
 
|none =  
|? ={{Wind|''???''}} [[Magic Points|{{Wind|MP}}]]
+
|? ={{Color|Green|''???''}} [[Magic Points|{{Color|green|MP}}]]
|#default = {{#if:{{{low mp|}}}|{{#if:{{{high mp|}}}|{{Wind|{{formatnum:{{{low mp}}}}}~{{formatnum:{{{high mp}}}}}}} [[Magic Points|{{Wind|MP}}]]| {{Wind|~{{formatnum:{{{low mp}}}}}}}  [[Magic Points|{{Wind|MP}}]]}}|{{#if:{{{high mp|}}}| {{Wind|~{{formatnum:{{{high mp}}}}}}} [[Magic Points|{{Wind|MP}}]]| {{Wind|''???''}} [[Magic Points|{{Wind|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

??? 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.