Video: Difference between revisions

From Freephile Wiki
Add Franti and more info
expand the cheatsheet
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Notice|cheatsheet: shorthand syntax for embed video <nowiki>{{#ev:youtube|IuRUx8ADkiY}}</nowiki>
<code>#ev</code> — Classic parser tag
* <code><nowiki>{{#ev:service|id}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment|description}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment|description|container}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment|description|container|urlargs}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize}}</nowiki></code>
* <code><nowiki>{{#ev:service|id|dimensions|alignment|description|container|urlargs|autoresize|valignment}}</nowiki></code>
However, if needed optional arguments may be left blank by not putting anything between the pipes:
* <code><nowiki>{{#ev:service|id|||description}}</nowiki></code>
}}
EMWCon Spring 2023
{{#evu:https://www.youtube.com/playlist?list=PLQVG_tuf3Q2dIgr3zPToNVWPbp56e2Jke
|alignment=right
}}
== Monitoring and Alerting in 3 Easy Steps ==
{{#ev:youtube|https://www.youtube.com/watch?v=IuRUx8ADkiY}}
== Supported MediaWiki ==
{{#ev:youtube|https://www.youtube.com/watch?v=QpYOjSkQnN4}}
== Local (on-wiki) ==
== Local (on-wiki) ==
Local video files are displayed in a player automatically. For example, [[:File:Dave_Matthews_Band_-_You_Me.mp4]] is automatically handed over to an HTML5 video player just by linking normally to the file like this: <pre>[[File:Dave_Matthews_Band_-_You_Me.mp4]]</pre>
Local video files are displayed in a player automatically. For example, [[:File:Dave_Matthews_Band_-_You_Me.mp4]] is automatically handed over to an HTML5 video player just by linking normally to the file.
 
{| class="wikitable"
[[File:Dave_Matthews_Band_-_You_Me.mp4]]
!You type
!You get
|-
| <nowiki>[[File:Dave_Matthews_Band_-_You_Me.mp4]]</nowiki><br />Note: there are more options to [[Help:Images|media]] file [[Help:Links|linking]], but this example shows the bare minimum.
|[[File:Dave_Matthews_Band_-_You_Me.mp4]]
|}


== Cloud (e.g. YouTube) ==
== Cloud (e.g. YouTube) ==
Video files hosted on any of the '''30 supported platforms''' including YouTube, Vimeo, Archive.org can be displayed/played easily.   
Video files hosted on any of the '''30 supported platforms''' including YouTube, Vimeo, TED Talks, & Archive.org can be displayed/played easily.
<pre>{{#ev:youtube|https://www.youtube.com/watch?v=FVztZI-OMUg|720|right|Michael Franti & Spearhead - Good to be Alive Today (Acoustic remix)|frame}}</pre>
{| class="wikitable"
gives
!You type
{{#ev:youtube|https://www.youtube.com/watch?v=FVztZI-OMUg|720|right|Michael Franti & Spearhead - Good to be Alive Today (Acoustic remix)|frame}}
!You get
 
|-
<pre>{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|720|left|Let eet GO|frame}}</pre>
|  
gives
<pre>{{#ev:youtube|FVztZI-OMUg|720|right|Michael Franti &amp; Spearhead - Good to be Alive Today (Acoustic remix)|frame}}</pre>
{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|720|left|Let eet GO|frame}}
There seems to be a weird thing going on with the link format. In order to get options like a frame and a caption, it's probably best to use the full URL (<nowiki>https://www.youtube.com/watch?v=</nowiki>'''ID'''). If you don't care about the formatting of the video box, you can just use the video '''ID''' in your link.
|{{#ev:youtube|https://www.youtube.com/watch?v=FVztZI-OMUg|720|right|Michael Franti &amp; Spearhead - Good to be Alive Today (Acoustic remix)|frame}}
|-
|
<nowiki>{{#ev:youtube|pSsYTj9kCHE}}</nowiki>
|{{#ev:youtube|pSsYTj9kCHE}}
|}


== Syntax ==
== Syntax ==
Line 18: Line 58:


== Finding Local Videos ==
== Finding Local Videos ==
You can use the [[Special:MIMESearch]] page to search for video files.
You can use the [[Special:MIMESearch]] page to search for video files. If you're using the [[Visual editor|Visual Editor]], then you can search right in the edit window.
 
 
__NOTOC__


[[Category:Video]]
[[Category:Video]]

Latest revision as of 08:42, 23 February 2024

EMWCon Spring 2023 Provided ID could not be validated.

Monitoring and Alerting in 3 Easy Steps[edit]

Supported MediaWiki[edit]

Local (on-wiki)[edit]

Local video files are displayed in a player automatically. For example, File:Dave_Matthews_Band_-_You_Me.mp4 is automatically handed over to an HTML5 video player just by linking normally to the file.

You type You get
[[File:Dave_Matthews_Band_-_You_Me.mp4]]
Note: there are more options to media file linking, but this example shows the bare minimum.

Cloud (e.g. YouTube)[edit]

Video files hosted on any of the 30 supported platforms including YouTube, Vimeo, TED Talks, & Archive.org can be displayed/played easily.

You type You get
{{#ev:youtube|FVztZI-OMUg|720|right|Michael Franti & Spearhead - Good to be Alive Today (Acoustic remix)|frame}}

There seems to be a weird thing going on with the link format. In order to get options like a frame and a caption, it's probably best to use the full URL (https://www.youtube.com/watch?v=ID). If you don't care about the formatting of the video box, you can just use the video ID in your link.

Michael Franti & Spearhead - Good to be Alive Today (Acoustic remix)
{{#ev:youtube|pSsYTj9kCHE}}

Syntax[edit]

For more details on the link syntax for videos, as well as the list of supported services, see the extension page .

Finding Local Videos[edit]

You can use the Special:MIMESearch page to search for video files. If you're using the Visual Editor, then you can search right in the edit window.