Difference between revisions of "User:JJR/evexamples"

From Ephemeral Film Wiki
Jump to navigation Jump to search
Line 72: Line 72:


=== Example 5 ===  
=== Example 5 ===  
DOES NOT works for YouTube.
;Using a local file as an embed thumbnail:
;Using a local file as an embed thumbnail:



Revision as of 16:46, 29 October 2021

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

DOES NOT works for YouTube.

Using a local file as an embed thumbnail
 {{#ev:youtube|eAORm-8b1Eg|thumbnail=File:LocalFile.jpg}}

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=38j1vMy94TY|urlArgs=start=32&end=42&rel=0}}