Difference between revisions of "User:JJR/evexamples"

From Ephemeral Film Wiki
Jump to navigation Jump to search
 
(32 intermediate revisions by the same user not shown)
Line 7: Line 7:


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


==== Example 1A ====
==== Example 1A ====
Line 27: 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 47: Line 53:


===  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:
;Creating a video list for Youtube. This allows you to queue a set of video in a temporary playlist. Use the 'youtubevideolist` service selector:


Line 54: Line 63:


=== Example 4 ===  
=== Example 4 ===  
Works for YouTube.
;Using the service name as a parser tag:
;Using the service name as a parser tag:
   <nowiki><youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube></nowiki>
   <nowiki><youtube>https://www.youtube.com/watch?v=eAORm-8b1Eg</youtube></nowiki>
Line 60: Line 72:


=== Example 5 ===  
=== Example 5 ===  
;Using a local file as an embed thumbnail:


  <nowiki>{{#ev:youtube|eAORm-8b1Eg|thumbnail=File:LocalFile.jpg}}</nowiki>
[[User:JJR/evexamples/ex5]]
 
===  Example 6 ===  


{{#ev:youtube|eAORm-8b1Eg|thumbnail=File:LocalFile.jpg}}
DOES NOT work for YouTube.


===  Example 6 ===
;Using a local file as an embed thumbnail and specifying a title:
;Using a local file as an embed thumbnail and specifying a title:


   <nowiki>{{#ev:youtube|eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}</nowiki>
   <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}</nowiki>


{{#ev:youtube|eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}
{{#ev:youtube|id=eAORm-8b1Eg|cover=File:LocalFile.jpg|title=Title of the Embed}}


=== Example 7 ===  
=== Example 7 ===  
Works for YouTube.
;Using named parameters:
;Using named parameters:


Line 81: Line 96:


=== Example 8 ===  
=== Example 8 ===  
;Using urlargs parameter:
 
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:


   <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|urlArgs=start=43&rel=0}}</nowiki>
   <nowiki>{{#ev:youtube|id=eAORm-8b1Eg|urlArgs=start=43&rel=0}}</nowiki>

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