Template:Hearts JJ1

From Junk Jack Wiki
Jump to: navigation, search

This template is used to display hearts.
It can be used to show a mobs health or the damage it deals per hit. It can also be used to show how much hearts a certain food gives back or anything else.
Please only use this template on Junk Jack Retro pages.

[edit] Template:Hearts JJ1

Based on template: Hearts
Modified by Lo Luv


[edit] How to use it

You need to enter the number of hearts you want to display where there is an x.
{{Hearts JJ1|x|}}
Example: {{Hearts JJ1|3|}} will give: Heart 4-4 JJ1.png Heart 4-4 JJ1.png Heart 4-4 JJ1.png

To add an incomplete heart, insert 1, 2 or 3 after the second line ( | ). It's the quarter slot
The number corresponds to the number of quarters: 1 is 1/4, 2 is 2/4 and 3 is 3/4.
Example: {{Hearts JJ1|2|1}} will give: Heart 4-4 JJ1.png Heart 4-4 JJ1.png Heart 1-4 JJ1.png
{{Hearts JJ1|2|2}} will give: Heart 4-4 JJ1.png Heart 4-4 JJ1.png Heart 2-4 JJ1.png
{{Hearts JJ1|2|3}} will give: Heart 4-4 JJ1.png Heart 4-4 JJ1.png Heart 3-4 JJ1.png

NOTE: The 2 lines ( | ) need to be there for the template to work correctly. Do not forget to put one after the first number even if you don't have any incomplete heart at the end (your quarter slot is empty).

[edit] Limitations

The number of hearts displayed can't exceed 12 + 1/4, 2/4 or 3/4 of a heart.
Example: {{Hearts JJ1|13|}} won't work, but {{Hearts JJ1|12|3}} will.

NOTE: If you really need to insert a thirteenth heart, you can use this little trick: {{Hearts JJ1|12|4}}, but otherwise, do not use the quarter slot to add a full heart.


Personal tools