Widget:YouTube
Appearance
This widget allows you to add a YouTube video player to your wiki page. It requires MediaWiki Widgets extension. Created by Yaron Koren.
To include a YouTube video or playlist, use:
{{#widget:YouTube|id=i4WgTHuDv70}}
Parameters:
- id ⇾ video id (from the URL)
- playlist ⇾ playlist name (starts with PL) - first clip is played (id is ignored)
- width and height define view dimensions, by default 1170×658 is used.
- class ⇾ CSS class to replace the default "widget" class.
- cssStyle ⇾ Additional block styling provided as CSS code.
For more information on how to use this widget, see the widget description page on MediaWikiWidgets.org.
To use this widget on your site, just install the MediaWiki Widgets extension and the copy full source code of this page to your wiki, as an article called Widget:YouTube.