Difference between revisions of "Template:Energy"
Jump to navigation
Jump to search
Rigel Kent (talk | contribs) (image alt text "Energy") |
Margotbean (talk | contribs) (implement templatestyles) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly><span | + | <includeonly><templatestyles src="Template:Energy/styles.css" /><span class="energytemplate">{{#iferror:{{#expr:{{{1|}}}<0}}| |
− | [[File:Energy.png|24px|link= | + | [[File:Energy.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=]] |
| | | | ||
− | [[File:Energy.png|24px|link= | + | [[File:Energy.png|24px|link=]] |
}} | }} | ||
| | | | ||
− | [[File:Energy.png|24px|link= | + | [[File:Energy.png|24px|link=]] |
}} | }} | ||
− | }}{{{1|} | + | }}{{{1|}}}</span></includeonly><noinclude>{{{{FULLPAGENAME}}/doc}}</noinclude> |
Latest revision as of 19:23, 22 May 2021
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|100}}
100
{{Energy|-100}}
-100