User:JJR/evexamples

From Ephemeral Film Wiki
Jump to navigation Jump to search

https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/master/README.md

YouTube Examples

service
youtube
id
eAORm-8b1Eg

Example 1

Works for YouTube.

Example 1A

For example, a video from YouTube use the 'youtube' service selector enter the raw ID
 {{#ev:youtube|eAORm-8b1Eg}}

Example 1B

Or the full URL
 {{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg}}

Example 2

Example 2A

Works for YouTube.

To display the same video as a right aligned large thumbnail with a description
 {{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|my desc is foobar|frame}}
my desc is foobar

Example 2B

Works for YouTube.

For YouTube to have the video start at a specific time code utilize the urlargs(URL arguments) parameter. Take the rest of the URL arguments from the custom URL and place them into the urlargs. Please note that not all video services support extra URL arguments or may have different keys for their URL arguments.

 https://www.youtube.com/watch?v=eAORm-8b1Eg&start=76
 {{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|||||start=76}}

Example 3

Works for YouTube.

Creating a video list for Youtube. This allows you to queue a set of video in a temporary playlist. Use the 'youtubevideolist` service selector
 {{#ev:youtubevideolist|-D--GWwca0g|||||playlist=afpRzcAAZVM,gMEHZPZTAVc,lom_plwy9iA,BSWYMQEQhEo,EREaWhXj4_Q}}

Example 4

Works for YouTube.

Using the service name as a parser tag
 <youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube>

Example 5

User:JJR/evexamples/ex5

Example 6

DOES NOT work for YouTube.

Using a local file as an embed thumbnail and specifying a title
 {{#ev:youtube|id=eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}

Example 7

Works for YouTube.

Using named parameters
 {{#ev:youtube|id=eAORm-8b1Eg|dimensions=320x320}}

Example 8

Works for YouTube. Available parameters are: autoplay, cc_lang_pref, cc_load_policy, color, controls, disablekb, enablejsapi, end, fs, hl, iv_load_policy, list, listType, loop, modestbranding, origin, playlist, playsinline, rel, start, widget_referrer

Using urlArgs parameter
 {{#ev:youtube|id=eAORm-8b1Eg|urlArgs=start=43&rel=0}}
 {{#ev:youtube|id=38j1vMy94TY|urlArgs=start=32&end=42&rel=0}}