AY and Template:Video: Difference between pages

From ProWiki - Demo and Test Wiki

(Difference between pages)

(add)
 
(add)
 
Line 1: Line 1:
; User registration logs
<noinclude>
# [https://starter.professional.wiki/page/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter=&subtype= starter.professional.wiki] - since June 14, 2022
<div style="float: right">__TOC__</div>
# [https://master.professional.wiki/page/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter=&subtype= master.professional.wiki] - since June 29, 2022
== Descripton ==
# [https://bootstrap.pro.wiki/wiki/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter=&wpfilters%5B%5D=newusers bootstrap.pro.wiki] - since June 10, 2022. On June 22, 2022 the wiki was closed for public registration.
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. Note that this does not work for external files on Vimeo, YouTube, etc.
# [https://automated.wikibase.wiki/wiki/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter=&wpfilters%5B%5D=newusers automated.wikibase.wiki] - since April 24, 2022. On June 22, 2022 the wiki was closed for public registration.
 
# [https://edtf.wikibase.wiki/wiki/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter=&subtype= edtf.wikibase.wiki] - since June 10, 2022. On June 22, 2022 the wiki was closed for public registration.
== Usage ==
# [https://wikibase-registry.wmflabs.org/wiki/Special:Log?type=newusers&user=&page=&wpdate=&tagfilter= wikibase-registry.wmflabs.org] - since March 16, 2022. Only four new registrations are not related to him.
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>
 
[[Category:Template]]
</noinclude><includeonly><div style="max-width: {{{width|425}}}px">
{{#widget:Video
|url={{#if: {{{url|}}} |{{{url|}}} |{{filepath: {{{name|}}} }} }}
}}
<div>{{#if:
{{{url|}}}
|[[Category:Pages with an embedded, externally hosted video file]]
|[[Category:Pages with an embedded, locally hosted video file]]
}}</includeonly>
<noinclude>
<templatedata>
{
"params": {
"width": {
"label": "width",
"description": "sets the width of the video",
"type": "number"
},
"url": {
"label": "URL",
"description": "Sets the URL for the Video",
"type": "url"
},
"name": {
"label": "Name",
"description": "Sets the name of the file for the video",
"type": "string"
}
},
"description": "The video template"
}
</templatedata>
</noinclude>

Revision as of 14:42, 1 December 2023

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