Template:YouTube

Permanently protected template
From SPCodex, The Smashing Pumpkins wiki
(Redirected from Template:Youtube)

This template defines the table "live_show_videos". View table.

Template documentation[view] [edit] [history] [purge]

Use this template to embed YouTube videos.

Example usage

  • {{YouTube|Do3tSdZucyA}} – where Do3tSdZucyA is the video ID. This by default displayed to the right.
  • {{YouTube|Do3tSdZucyA|Description of the video}}
  • {{YouTube|Do3tSdZucyA|Description of the video|float=left}}

By default, videos are displayed floated to the right of the page. You can use the |float= parameter, and with possible values left, right or none. When floated to the left or right, sometimes text that follows can end up next to the video when you don't want it to. To get around this, add {{clear}} after the template. For example:

{{YouTube|video ID|Description of the video|float=left}}
{{clear}}
Some other text that should be shown below the video.

Embed a YouTube video

[Edit template data]

Template parameters

ParameterDescriptionTypeStatus
YouTube video ID1

This is the alphanumeric code that follows the v= in the URL of the YouTube video.

Stringrequired
Description2

Optional description to show below the video

Contentsuggested
Positionfloat position

Either 'left', 'right' or 'none'

Auto value
right
Stringsuggested
Widthwidth

Width of the embedded video. Does not automatically scale with the height.

Auto value
400
Unknownoptional
heightheight

Height of embedded video. Does not automatically scale with the width.

Auto value
240
Unknownoptional