Template:Video

From ProWiki - Demo and Test Wiki

Revision as of 14:45, 1 December 2023 by Karsten (talk | contribs) (chg)

Descripton

This is the Video template. It uses the Video widget and supports easy embedding of a file by automatically extracting the "url" parameter from the name" from the specified file name. However, it is still possible to use the "url" parameter for externally hosted files. Note that this does not work for external files on Vimeo, YouTube, etc.

Usage

Either parameter "name" or parameter "url" must be specified. If one does not provide a value for the parameter "width", the template uses the default value of 425.

local file

{{Video
 |name=Animation_M01_Boundary_01b_test2.mp4
}}

local file with deviating width

{{Video
 |name=Animation_M01_Boundary_01b_test2.mp4
 |width=800
}}

external file

{{Video
 |url=https://pornel.net/Performance.ogg
}}

local file with deviating width

{{Video
 |url=https://pornel.net/Performance.ogg
 |width=300
}}


The video template

Template parameters

ParameterDescriptionTypeStatus
widthwidth

sets the width of the video

Numberoptional
URLurl

Sets the URL for the Video

URLoptional
Namename

Sets the name of the file for the video

Stringoptional