Page Actions

Widget

YouTube

From ISOGG Wiki


[edit] [purge] Documentation

Documentation for the Widget:YouTube

For ease of embedding, use the recommended {{YouTube}} template to embed YouTube videos which uses this widget. Signed, TomHutchison 20:52, 21 July 2010 (UTC)

{{#widget:YouTube|id=the YouTube Id code of the video
|width= value
|height= value
}}

The default height and width are: 450 X 338

For example this code will embed the following YouTube video.

{{#widget:YouTube|id=y3zki_qSrqU
|width=320
|height=240
}}

Aligning video on page

You can also use the {{align video}} template. This video has no width and height value for default sizing.

{{align video
|video={{#widget:YouTube|id=y3zki_qSrqU
|width=420
|height=328
}}
|align=right
}}
The align tags are left, center and right.