Widget:YouTube

From Hackerspace ACKspace
Revision as of 14:46, 11 September 2015 by Xopr (talk | contribs) (added optional items+playlist reference)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Using this widget

To add a video to your page, write down the video ID and paste the following code (width and height are optional, and you can replace id with playlist if you want to include a complete playlist by id):

{{#widget:YouTube
|id=bgJD9x3zQ-0
|width=640
|height=480
}}

Will give the following result:

Copy to your site

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.