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

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

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|foobar|frame}}
foobar

Example 2B

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

Creating a video list for Youtube. This allows you to queue a set of video in a temporary playlist. Use the 'youtubevideolist` service selector:

Example 4

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

Example #5

Using a local file as an embed thumbnail

Example 6

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

Example 7

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

Example 8

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