Permanently protected page

Widget:YouTube

From Bogleheads
Jump to navigation Jump to search

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

Created by Yaron Koren.

Documentation[view] [edit] [history] [purge]

This widget allows you to add YouTube video player.

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

Video

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

Playlist

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


Widget internals

Widgets do not use parser functions. Instead, a template programming language known as "Smarty" is used. Refer to the Smarty 3 Manual for the details.

External links