Difference between revisions of "Template:Energy"

From Stardew Valley Wiki
Jump to navigation Jump to search
(indentation + error handling)
m (Fix breaking space)
Line 1: Line 1:
<includeonly><span id="nametemplate">
+
<includeonly><span id="nametemplate">{{#iferror:{{#expr:{{{1|}}}<0}}|
{{#iferror:{{#expr:{{{1|}}}<0}}|
 
 
     [[File:Energy.png|24px|link=]]
 
     [[File:Energy.png|24px|link=]]
 
     |
 
     |
Line 12: Line 11:
 
         [[File:Energy.png|24px|link=]]
 
         [[File:Energy.png|24px|link=]]
 
     }}
 
     }}
}}
+
}}{{{1|}}}{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
{{{1|}}}{{#if: {{{2|}}}|&nbsp;({{{2|}}})|}}
 
</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude>
 

Revision as of 04:37, 11 March 2017

Description

This template is used to insert File:Energy.png or File:Poison.png in-line with text.

Use

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

{{Energy|amount}}

Examples

{{Energy}}

Energy.png

{{Energy|100}}

Energy.png100

{{Energy|-100}}

Poison.png-100