Difference between revisions of "User:JJR/evexamples"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
(45 intermediate revisions by the same user not shown)
Line 1: Line 1:
https://github.com/StarCitizenWiki/mediawiki-extensions-EmbedVideo/blob/master/README.md
== YouTube Examples ==
== YouTube Examples ==


Line 5: Line 7:


=== Example 1 ===
=== Example 1 ===
Works for YouTube.


==== Example 1A ====
==== Example 1A ====
Line 25: Line 29:


==== Example 2A ====
==== Example 2A ====
Works for YouTube.


;To display the same video as a right aligned large thumbnail with a description:  
;To display the same video as a right aligned large thumbnail with a description:  


   <nowiki>{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|foobar|frame}}</nowiki>
   <nowiki>{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|my desc is foobar|frame}}</nowiki>


{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|foobar|frame}}
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|1000|right|my desc is foobar|frame}}


<div style="clear:both;"></div>
<div style="clear:both;"></div>


==== Example 2B ====
==== 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.
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.
Line 44: Line 52:
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|||||start=76}}
{{#ev:youtube|https://www.youtube.com/watch?v=eAORm-8b1Eg|||||start=76}}


===  Example #3 ===  
===  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:
 
  <nowiki>{{#ev:youtubevideolist|-D--GWwca0g|||||playlist=afpRzcAAZVM,gMEHZPZTAVc,lom_plwy9iA,BSWYMQEQhEo,EREaWhXj4_Q}}</nowiki>
 
{{#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:
  <nowiki><youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube></nowiki>
 
<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:
 
  <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}</nowiki>
 
{{#ev:youtube|id=eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}
 
=== Example 7 ===  
 
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:
;Using named parameters:


    {{#ev:youtubevideolist|-D--GWwca0g|||||playlist=afpRzcAAZVM,gMEHZPZTAVc,lom_plwy9iA,BSWYMQEQhEo,EREaWhXj4_Q}}
  <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|dimensions=320x320}}</nowiki>


=== Example #4 ===  
{{#ev:youtube|id=eAORm-8b1Eg|dimensions=320x320}}
Using the service name as a parser tag


    <youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube>
=== Example 8 ===


=== Example #5 ===
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 a local file as an embed thumbnail


    {{#ev:youtube|eAORm-8b1Eg|thumbnail=File:LocalFile.jpg}}
;Using urlArgs parameter:


=== Example #6 ===  
  <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|urlArgs=start=43&rel=0}}</nowiki>
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}}
{{#ev:youtube|id=eAORm-8b1Eg|urlArgs=start=43&rel=0}}


=== Example #7 ===  
  <nowiki>{{#ev:youtube|id=38j1vMy94TY|urlArgs=start=32&end=42&rel=0}}</nowiki>
Using named parameters


    {{#ev:youtube|id=eAORm-8b1Eg|dimensions=320x320}}
{{#ev:youtube|id=38j1vMy94TY|urlArgs=start=32&end=42&rel=0}}

Latest revision as of 21:32, 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

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