Difference between revisions of "Template:Hearts"

From The Twilight Forest Wiki
Jump to navigation Jump to search
(Created template to try and simplify health icons/get infoboxes to work properly)
 
m
Line 1: Line 1:
<includeonly>{{#if: {{{full|}}} | <span class="nowrap">{{#expr: {{{1}}}*2}}HP}}{{#if: {{{full|}}} | &nbsp;<span class="nowrap">(}}{{#if: {{{brackets|}}} |<span class="nowrap">(}}{{#if: {{{1|}}} | {{#ifeq: {{{1}}} | 0 | 0x <span title="Heart">[[File:Heart.png|10x10px|link=]]</span> | {{#ifeq: {{{1}}} | 1 | 1x <span title="Heart">[[File:Heart.png|10x10px|link=]]</span> | {{{1}}}x <span title="Hearts">[[File:Heart.png|10x10px|link=]]</span>}}}} | 0x <span title="Heart">[[File:Heart.png|10x10px|link=]]</span>}}{{#if: {{{brackets|}}} |)</span>}}{{#if: {{{full|}}} | )</span>}}</includeonly>
<includeonly>{{#if: {{{full|}}} | <span class="nowrap">{{#expr: {{{1}}}*2}}HP}}{{#if: {{{full|}}} | &nbsp;<span class="nowrap">(}}{{#if: {{{brackets|}}} |<span class="nowrap">(}}{{#if: {{{1|}}} | {{#ifeq: {{{1}}} | 0 | 0x <span title="Heart">[[File:HeartFull.png|10x10px|link=]]</span> | {{#ifeq: {{{1}}} | 1 | 1x <span title="Heart">[[File:HeartFull.png|10x10px|link=]]</span> | {{{1}}}x <span title="Hearts">[[File:HeartFull.png|10x10px|link=]]</span>}}}} | 0x <span title="Heart">[[File:HeartFull.png|10x10px|link=]]</span>}}{{#if: {{{brackets|}}} |)</span>}}{{#if: {{{full|}}} | )</span>}}</includeonly>
<noinclude>{{/doc}}</noinclude>
<noinclude>{{/doc}}</noinclude>

Revision as of 21:41, 16 May 2015