Template:HeartAmount

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search

Purpose

Displays a number of Hearts, for example the amount of health healed by food in Breath of the Wild. It's mainly to be used in tables, so by default a sort key wikitext is added so the row will sort by number of Hearts correctly.

It supports between 0 and 30 hearts, incrementing by quarters. Exactly 30 hearts is a "full recovery".

Usage

    {{HeartAmount|Number of Hearts |No data sort }}

  • Number of Hearts — The number of hearts, e.g. 1+1/4 or 10.25
  • No data sort — If this parameter is used with any text, the data sort key for use in tables will not appear

Examples

#InputOutput
1{{HeartAmount|0}} data-sort-value=0|BotW Empty Heart Icon.png
2{{HeartAmount|0.5}} data-sort-value=0.5|BotW Half-Heart Icon.png
3{{HeartAmount|6.25}} data-sort-value=6.25|BotW 5Heart Icon.pngBotW Heart Icon.pngBotW Quarter Heart Icon.png
4{{HeartAmount|12}} data-sort-value=12|BotW 10Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.png
5{{HeartAmount|18}} data-sort-value=18|BotW 15Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.png
6{{HeartAmount|24}} data-sort-value=24|BotW 20Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.png
7{{HeartAmount|27.75}} data-sort-value=27.75|BotW 25Heart Icon.pngBotW Heart Icon.pngBotW Heart Icon.pngBotW Three-Quarter Heart Icon.png
8{{HeartAmount|30}} data-sort-value=30|BotW Full Recovery Icon.png