Jump to content
Menü aufrufen
Toggle preferences menu
Persönliches Menü aufrufen
Nicht angemeldet
Ihre IP-Adresse wird öffentlich sichtbar sein, wenn Sie Änderungen vornehmen.

Description

This is the Video template. It uses the Html5media widget but helps to avoid adding the full URL of a locally uploaded file to the widget's "url" parameter by rather just specifying the name of the file via the "name" parameter. It is however still possible to use the "url" parameter for an externally hosted file.

Usage

Either the "name" or the "url" parameter must be specified. If nothing is being specified for the "width" (default = 425) and "height" (default = 355) parameters their default values will be used.

externally hosted file

{{Video
 |url=https://upload.wikimedia.org/wikipedia/commons/e/e6/Roundhay_Garden_Scene.ogv
 |width=425
 |height=355
}}

locally hosted file

{{Video
 |name=Roundhay_Garden_Scene.ogg
 |width=425
 |height=355
}}

Example

externally hosted file

locally hosted file

Code

Just copy the following code to a page called "Template:Video" on your wiki.

<includeonly>{{#widget:Html5media |url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }} |width={{{width|425}}} |height={{{height|355}}} }}</includeonly>


Cookies helfen uns bei der Bereitstellung von DragonballWiki. Durch die Nutzung von DragonballWiki erklärst du dich damit einverstanden, dass wir Cookies speichern.