Difference between revisions of "Widget:Snippet"
Line 24: | Line 24: | ||
<div class="thumb tnone"> | <div class="thumb tnone"> | ||
<!--{/if}--> | <!--{/if}--> | ||
− | <div class="thumbinner" style="width: <!--{$width+2|escape:'html'|validate:int|default:"302"}-->px;"> | + | <!--{if isset($width)}--> |
+ | <div class="thumbinner" style="width: <!--{$width+2|escape:'html'|validate:int|default:"302"}-->px;"> | ||
+ | <!---{else}---> | ||
+ | <div class="thumbinner" style="width: 302px;"> | ||
+ | <!--{/if}--> | ||
<a href="<!--{$file|escape:'html'}-->" > | <a href="<!--{$file|escape:'html'}-->" > | ||
<!--{/if}--> | <!--{/if}--> |
Revision as of 07:36, 21 April 2017
This allows you to embed MP4 videos as if they were a normal GIF. You use it like this;
{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|width=300|height=300}}
Where you replace 'TestingMp4.mp4' with the name of your video file. Width and height are optinal.
It will automatically mute, autoplay, and loop the video, just as if it were a GIF.