Skip to content

Service YouTube

H. C. Kruse edited this page Nov 10, 2021 · 2 revisions

Examples

Parser Tag with ID or URL

For example, a video from YouTube use the 'youtube' service selector enter the raw ID:

{{#ev:youtube|pSsYTj9kCHE}}

Or the full URL:

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE}}

Right aligned video with description

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

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|1000|right|Example description|frame}}

Video lists

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

Usage as parser tag

Using the service name as a parser tag

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

Local file as thumbnail

Using a local file as an embed thumbnail

{{#ev:youtube|pSsYTj9kCHE|thumbnail=File:LocalFile.jpg}}

Local file as thumbnail and title

Using a local file as an embed thumbnail and specifying a title

{{#ev:youtube|pSsYTj9kCHE|cover=File:LocalFile.jpg|title=Title of the Embed}}

Named parameters

Using named parameters

{{#ev:youtube|id=pSsYTj9kCHE|dimensions=320x320}}

Starting the video at a specified time

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=pSsYTj9kCHE&start=76

{{#ev:youtube|https://www.youtube.com/watch?v=pSsYTj9kCHE|||||start=76}}

or

{{#ev:youtube|pSsYTj9kCHE|||||start=32}}

or

{{#ev:youtube|id=pSsYTj9kCHE|urlArgs=start=32}}

or

{{#ev:youtube|id=pSsYTj9kCHE|urlArgs=start=32&end=42}}