Difference between revisions of "Template:Health"

From Mushpedia
Jump to: navigation, search
(Added formatting like Morale, and updated link to new Health page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[Image:lp.png|link=Health#Basic_Stats|Health]] '''Health'''</includeonly><noinclude>
+
<includeonly>[[image:Lp.png|link=Health#Health Points|class=icon-margin|Health Point]]{{#if: {{{1|}}} | ''' Health'''}}</includeonly><noinclude>
Use this template to display [[Health#Basic_Stats|Health]] points. This should be used across the wiki.
+
A template to display '''Health Points''' as a nice icon with a hyperlink to the [[Health#Health Points|Health]] page. '''"long"''' is an optional parameter and adds "'''Health'''" behind the icon. This should be used across the wiki.
  
'''Usage:''' <pre>{{Health}}</pre>
+
Usage: <pre>{{Health|long}} or {{HP|long}}</pre>
'''Example:'''
+
Example:  
<pre>Eating a banana gives you one {{Health}}.</pre>
+
<pre>{{HP}}</pre>
Eating a banana gives you one {{Health}}.
+
{{HP}}
 +
 
 +
<pre>Eating a banana gives you one {{Health|long}}.</pre>
 +
Eating a banana gives you one {{Health|long}}.
  
 
[[Category:Templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 16:09, 20 December 2013

A template to display Health Points as a nice icon with a hyperlink to the Health page. "long" is an optional parameter and adds "Health" behind the icon. This should be used across the wiki.

Usage:
{{Health|long}} or {{HP|long}}

Example:

{{HP}}

Health Point

Eating a banana gives you one {{Health|long}}.

Eating a banana gives you one Health Point Health.