This template is protected from editing.

Template:Youtube

From Team Fortress Wiki
Revision as of 10:11, 19 August 2011 by Seb26 (talk | contribs) (Removed {{auto lang cat}} (deprecated).)
Jump to: navigation, search
The #evp parser function was deprecated in EmbedVideo 2.0. Please convert your parser function tag to #ev.

Caption here.

Documentation for Youtube


This template will embed a video inside an article.

Syntax

Basic:

{{youtube|YouTube id}}

With a defined thumbnail width:

{{youtube|YouTube id|width=value|align=alignment}}
YouTube Video ID
The YouTube video id of the video to include.
Width
Width of the video, in pixels. Height is calculated based on ratio. Default is 512px.
Widths
If specified, must be a list of hyphen-separated integers representing possible video widths (Example: 460-500-700). The video size will be based on the browser window size and the ratio of the video. If left unspecified, the video will stay at the value of the width attribute.
Align
Horizontal alignment of video. Default is left.
Ratio
Ratio of embedded video, with x as separator (Example: 4x3). Default is 16x9.
HD
Whether HD should be turned on or off by default. Default is to let YouTube decide. YouTube users may override this value in their YouTube preferences.

See also