Difference between revisions of "Template:Health"

From Stardew Valley Wiki
Jump to navigation Jump to search
(implement templatestyles)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly><span id="nametemplate">{{#iferror:{{#expr:{{{1|}}}<0}}|
+
<includeonly><templatestyles src="Template:Health/styles.css" /><span class="healthtemplate">{{#iferror:{{#expr:{{{1|}}}<0}}|
 
     [[File:Health.png|24px|link=]]
 
     [[File:Health.png|24px|link=]]
 
     |
 
     |
 
     {{#if:{{{1|}}}|
 
     {{#if:{{{1|}}}|
 
         {{#ifexpr:{{#expr:{{{1|}}}<0}}|
 
         {{#ifexpr:{{#expr:{{{1|}}}<0}}|
             [[File:Poison.png|24px|link=]]
+
             [[File:Poison.png|24px|link=]]&nbsp;
 
             |
 
             |
 
             [[File:Health.png|24px|link=]]
 
             [[File:Health.png|24px|link=]]

Latest revision as of 20:09, 22 May 2021

Description

This template is used to insert File:Health.png inline with text. On the French language wiki, this template inserts File:Health FR.png inline with text.

Use

This template can be used by entering the following onto a relevant page.

{{Health|amount}}

Examples

{{Health}}

Health.png

{{Health|100}}

Health.png100

{{Health|0}}

Health.png0

{{Health|-100}}

Poison.png -100