Help:Widgets/YouTube

From UBC Wiki
Jump to: navigation, search

This widget allows you to add YouTube video player to your wiki page.

To embed YouTube videos, use the following code:

{{#widget:YouTube|id=DWef69ItVrU|height=360|width=480}}

Parameters

Parameters

  • id - video id (from the URL)
  • playlist - playlist name (starts with PL) - first clip is played (id is ignored)
  • height and width define view dimensions, 420x350 is default

Sample results


Playlist
 {{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}} 

Adding the code to the Visual Editor

When you insert a widget code (including YouTube, Slideshare, etc.) to the Visual Editor, copy the code then paste it to the Visual Editor. Then click on the code, and press edit. Then, you can change the parameter and press Apply Changes.

Paste the example code to the visual editor. Click on the code, and press edit. Then, change the parameter and press Apply Changes

Adding the code to the Visual editor

When you insert a widget code (including YouTube, Slideshare, etc.) to the Visual Editor, copy the code then paste it to the Visual Editor. Then click on the code, and press edit. Then, you can change the parameter and press Apply Changes.

Paste the example code to the visual editor. Click on the code, and press edit. Then, change the parameter and press Apply Changes