Template:H: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created page with "<onlyinclude>{{#switch: {{{1|4}}} | 1 = File:1-4 Heart.png | 2 = File:2-4 Heart.png | 3 = File:3-4 Heart.gif | 4 = File:1 Heart.png }}</onlyinclude> ==Purpose...")
 
mNo edit summary
Line 1: Line 1:
<onlyinclude>{{#switch: {{{1|4}}}
<onlyinclude>{{#switch: {{{1|4}}}
| 1 = [[File:1-4 Heart.png]]
| 1 = [[File:1-4 Heart.png]]
| 2 = [[File:2-4 Heart.png]]
| 2 = [[File:1-2 Heart.png]]
| 3 = [[File:3-4 Heart.gif]]
| 3 = [[File:3-4 Heart.gif]]
| 4 = [[File:1 Heart.png]]
| 4 = [[File:1 Heart.png]]
Line 13: Line 13:
{{Usage/Param|fraction|Number out of four (e.g. "1" for one-quarter heart).|optional|4 (full heart)}}
{{Usage/Param|fraction|Number out of four (e.g. "1" for one-quarter heart).|optional|4 (full heart)}}
{{Usage/Example}}<pre>
{{Usage/Example}}<pre>
{{H|4}}{{H}}
{{H|4}}{{H}}<br>
{{H|3}}
{{H|3}}<br>
{{H|2}}
{{H|2}}<br>
{{H|1}}</pre>
{{H|1}}</pre>
{{Usage/Result|
{{Usage/Result|
{{H|4}}{{H}}
{{H|4}}{{H}}<br>
{{H|3}}
{{H|3}}<br>
{{H|2}}
{{H|2}}<br>
{{H|1}}
{{H|1}}
}}
}}

Revision as of 03:16, September 10, 2012

1 Heart.png

Purpose

This provides a more intuitive way of indicating how much damage an attack does. For attacks that do more than one heart of damage, this template can be used several times in succession.

Usage

{{H| fraction }}

  • fraction — Number out of four (e.g. "1" for one-quarter heart). (Optional. Default: 4 (full heart))
ExampleResult
{{H|4}}{{H}}<br>
{{H|3}}<br>
{{H|2}}<br>
{{H|1}}

1 Heart.png1 Heart.png
File:3-4 Heart.gif
1-2 Heart.png
1-4 Heart.png