Difference between revisions of "Template:Video"
Jump to navigation
Jump to search
WikiWorks753 (talk | contribs) |
WikiWorks753 (talk | contribs) |
||
(5 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
Params are: | Params are: | ||
− | + | * Video file name | |
− | + | * Poster image file name | |
− | + | * Video width (optional) | |
− | + | * Video height (optional) | |
− | <pre> | + | <pre><nowiki> |
− | {{Video|Somefile.mp4|Posterimage.jpg|400px|300px}} | + | {{Video|Somefile.mp4|Posterimage.jpg|400px|300px}}</nowiki> |
</pre> | </pre> | ||
− | </noinclude><includeonly>{{#widget:Html5media|url={{filepath:{{{1}}}}}|width={{{3}}}|height={{{4}}}|poster={{filepath:{{{2}}}}}}}</includeonly> | + | </noinclude><includeonly>{{#widget:Html5media|url={{filepath:{{{1}}}}}|width={{{3|}}}|height={{{4|}}}|poster={{filepath:{{{2}}}}}}}</includeonly> |
Latest revision as of 14:07, 13 May 2020
The template embeds a video file with a poster using Html5media widget
Params are:
- Video file name
- Poster image file name
- Video width (optional)
- Video height (optional)
{{Video|Somefile.mp4|Posterimage.jpg|400px|300px}}