View source for Template:Video
←
Template:Video
Jump to navigation
Jump to search
<noinclude> <div style="float: right">__TOC__</div> == Descripton == This is the '''Video''' template. It uses the [[Widget:Video|Video]] widget and supports easy embedding of a file by automatically extracting the "<code>url</code>" parameter from the <code>name</code>" from the specified file name. However, it is still possible to use the "<code>url</code>" parameter for externally hosted files. It was created by [https://professional.wiki Karsten Hoffmeyer] for [https://www.pro.wiki ProWiki]. == Usage == Either parameter "<code>name</code>" or parameter "<code>url</code>" must be specified. If one does not provide a value for the parameter "<code>width</code>", the template uses the default value of 425. === local file === <pre> {{Video |name=Animation_M01_Boundary_01b_test2.mp4 }} </pre> === local file with deviating width === <pre> {{Video |name=Animation_M01_Boundary_01b_test2.mp4 |width=800 }} </pre> === external file === <pre> {{Video |url=https://pornel.net/Performance.ogg }} </pre> === local file with deviating width === <pre> {{Video |url=https://pornel.net/Performance.ogg |width=300 }} </pre> __NOEDITSECTION__ [[Category:Template]] </noinclude><includeonly> <div style="max-width: {{{width|425}}}px;"> <div style="padding-left: 20px;"> {{#widget:Video |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} }} </div> </div> {{#if: {{{url|}}} |[[Category:Pages with an embedded, externally hosted video file]] |[[Category:Pages with an embedded, locally hosted video file]] }}</includeonly>
Return to
Template:Video
.
Navigation menu
Personal tools
English
Log in
Namespaces
Template
Discussion
English
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Random page
MediaWiki help
Tools
What links here
Related changes
Special pages
Page information