Template:Masked gif: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<includeonly><div class="qud-inline-gif"><div class="qud-inline-gif-mask"><span>gif</span></div>[[File:{{{img}}}|link=]][[File:{{{gif}}}|class=qud-invisible|link=]]</div></includeonly><noinclude>
<includeonly><div class="qud-inline-gif"><div class="qud-inline-gif-mask"><span>gif</span></div>[[File:{{{img}}}|link=]][[File:{{{gif}}}|class=qud-invisible|link=]]</div>[[Category:Pages with GIFs]]</includeonly><noinclude>


This template allows inserting a masked GIF onto a page. The GIF must then be clicked before it can play.
This template allows inserting a masked GIF onto a page. The GIF must then be clicked before it can play.
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>


{{masked gif | img = machine press demo.png | gif = machine press demo.gif }}
{{suppress categories|{{masked gif | img = machine press demo.png | gif = machine press demo.gif }}}}
 
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 02:21, 27 October 2020


This template allows inserting a masked GIF onto a page. The GIF must then be clicked before it can play.

You must provide a mask image as the img parameter (such as a static .png of the GIF or just a plain color rectangle), as well as a gif parameter that includes the .gif image itself. The images should be the same size as one another.

Example Usage

{{masked gif | img = machine press demo.png | gif = machine press demo.gif }}
gif