Difference between revisions of "Widget:Snippet"

From HaloRuns Wiki
Jump to: navigation, search
Line 7: Line 7:
 
<code><nowiki>{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|width=300|height=300}}</nowiki></code>
 
<code><nowiki>{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|width=300|height=300}}</nowiki></code>
 
 
<code><nowiki>{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|thumbnail|left|caption=A beautiful thumbnail that is awesome look at it look}}</nowiki></code>
+
<code><nowiki>{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|thumbnail|left|caption=A beautiful thumbnail that is awesome look at it look}}</nowiki></code>
 
 
 
Where you replace 'TestingMp4.mp4' with the name of your video file.  
 
Where you replace 'TestingMp4.mp4' with the name of your video file.  

Revision as of 08:10, 21 April 2017

This allows you to embed MP4 videos as if they were a normal GIF. It will automatically mute, autoplay, and loop the video, just as if it were a GIF.

You use it like this;

{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|width=300|height=300}}

{{#widget:Snippet|file={{filepath:TestingMp4.mp4}}|thumbnail|left|caption=A beautiful thumbnail that is awesome look at it look}}

Where you replace 'TestingMp4.mp4' with the name of your video file.

Width and height are optional. If you use thumbnail, you can set which side (left or right) and give it a caption