Widget

Difference between revisions of "YouTubeList"

From MusicTechWiki

 
(No difference)

Latest revision as of 05:42, 15 February 2020

This widget allows you to embed one YouTube Video on your wiki page.

YouTubeList

You will need to use the YouTube Widget to insert the player. {{#widget:YouTube|width=640|id=fB8UTheTR7s}} Using just the id of the first video in your playlist.

To insert the playlist widget, use the following code:

{{#widget:YouTubeList
|title=My Cool YouTube Playlist
|width=640
|id.fB8UTheTR7s=Sleepy Man Banjo Boys: Bluegrass
|id.fpmN9JorFew=Tracy Chapman - Give Me One Reason
|id.abQRt6p8T7g=The Avett Brothers Tiny Desk Concert
|id.RTHI_uGyfTM=Winter Harp performs Caravan
|id.0SNhAKyXtC8=Edmar Castaneda: NPR Music Tiny Desk Concert
}}

Parameters

  • title - Title of the Playlist (default is Playlist)
  • width max-width dimension (optional, 640 default)
  • id.ID of the YouTube video=The Title You Want to Use for YouTube Video
    NOT the whole URL. Note: Make sure the video is public.
    Here is the example of the video id from the embed code. https://www.youtube.com/embed/t1plGcyBBRA
    It is far easier to just grab the ID from the URL, just do not use the whole URL. https://www.youtube.com/watch?v=t1plGcyBBRA
    You can also use the id from the share link URL. https://youtu.be/t1plGcyBBRA

Example of a Playlist

The following is the code and an example of the output.

Use This Code

The code:

{{#widget:YouTube|id=fB8UTheTR7s}}
{{#widget:YouTubeList
|title=My Cool YouTube Playlist
|id.fB8UTheTR7s=Sleepy Man Banjo Boys: Bluegrass
|id.fpmN9JorFew=Tracy Chapman - Give Me One Reason
|id.abQRt6p8T7g=The Avett Brothers Tiny Desk Concert
|id.RTHI_uGyfTM=Winter Harp performs Caravan
|id.0SNhAKyXtC8=Edmar Castaneda: NPR Music Tiny Desk Concert
}}


This Playlist Output

The output:

My Cool YouTube Playlist

Sleepy Man Banjo Boys: Bluegrass
Tracy Chapman - Give Me One Reason
The Avett Brothers Tiny Desk Concert
Winter Harp performs Caravan
Edmar Castaneda: NPR Music Tiny Desk Concert