Widget:YouTube

From Nottinghack Wiki
Revision as of 14:23, 8 June 2014 by Lwk (talk | contribs) (Reverted edits by Lwk (talk) to last revision by Marcus)
Jump to navigation Jump to search

This widget allows you to embed a YouTube video player in a wiki page.

Usage

You can insert a video with the following wiki code:

{{#widget:YouTube|id=DWef69ItVrU}}

Parameters

id
The video ID. This can be found in the YouTube video's URL, for example: http://www.youtube.com/watch?v=DWef69ItVrU
width
Width of the video player in pixels (default 480).
height
Height of the video player in pixels (default 385).

For 16:9 video you will get better results by setting the size to 640×385.

Example