Template:HeartAmount
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
# | Input | Output |
---|---|---|
1 | {{HeartAmount|0}} | data-sort-value=0| |
2 | {{HeartAmount|0.5}} | data-sort-value=0.5| |
3 | {{HeartAmount|6.25}} | data-sort-value=6.25| |
4 | {{HeartAmount|12}} | data-sort-value=12| |
5 | {{HeartAmount|18}} | data-sort-value=18| |
6 | {{HeartAmount|24}} | data-sort-value=24| |
7 | {{HeartAmount|27.75}} | data-sort-value=27.75| |
8 | {{HeartAmount|30}} | data-sort-value=30| |