Difference between revisions of "Template:Hearts"

From Luanti Wiki
Jump to navigation Jump to search
(Replaced switch with module invocation)
m
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#invoke:Hearts | hearts | {{{1}}} }}</includeonly><noinclude>
+
<includeonly>{{#invoke:IconBar|bar|name=heart}}</includeonly><noinclude>
== Examples ==
+
{{Documentation}}
{| class="wikitable"
+
<!-- Categories go on the /doc subpage -->
! source
 
! output
 
|-
 
|
 
<nowiki>{{Hearts | 3.5}}</nowiki>
 
|{{Hearts | 3.5}}
 
|}
 
 
 
[[Category:Templates]]
 
 
</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