Difference between revisions of "Template:Health"

From Mushpedia
Jump to: navigation, search
(Added optional 'long' parameter, fused with old Template:LP code.)
 
(One intermediate revision 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.
+
 
+
'''Usage:''' <pre>{{Health}}</pre>
+
'''Example:'''
+
<pre>Eating a banana gives you one {{Health}}.</pre>
+
Eating a banana gives you one {{Health}}.
+
 
+
[[Category:Templates|{{PAGENAME}}]]
+
</noinclude>
+
<includeonly>[[image:Lp.png|link=Health#Health Points|Health]]{{#if: {{{1|}}} | ''' Health'''}}</includeonly><noinclude>
+
 
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.
 
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.
  

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.