Difference between revisions of "Template:Hearts"

From Minetest Wiki
Jump to navigation Jump to search
m (fixed 2.5 hearts)
m
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{{#switch: {{{1}}}
+
<includeonly>{{#invoke:IconBar|bar|name=heart}}</includeonly><noinclude>
| 0.5 = [[File:Half_heart.png | 16px]]
+
{{Documentation}}
| 1 = [[File:Heart.png | 16px]]
+
<!-- Categories go on the /doc subpage -->
| 1.0 = [[File:Heart.png | 16px]]
 
| 1.5 = [[File:Heart.png | 16px]][[File:Half_heart.png | 16px]]
 
| 2 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 2.0 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 2.5 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Half_heart.png | 16px]]
 
| 3 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 3.0 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 3.5 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Half_heart.png | 16px]]
 
| 4 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 4.0 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 4.5 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Half_heart.png | 16px]]
 
| 5 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| 5.0 = [[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]][[File:Heart.png | 16px]]
 
| [[File:Heart.png | 16px]]
 
}}</includeonly>
 
<noinclude>
 
== Examples ==
 
{| class="wikitable"
 
! source
 
! output
 
|-
 
|
 
<nowiki>{{Heart | 3.5}}</nowiki>
 
|{{Heart | 3.5}}
 
|}
 
 
</noinclude>
 
</noinclude>

Latest revision as of 05:17, 10 May 2017

Documentation icon.png Documentation[view] [edit] [history] [purge]
Languages Language: English
Lua logo.png This template uses Module:IconBar, a script written in Lua.
Please see wikipedia:Wikipedia:Lua and mw:Extension:Scribunto to learn more.

Examples

Source Output
{{Hearts|3.5}} Heart.pngHeart.pngHeart.pngHalf heart.png