Template:Youtube/doc

Usage

 * {{youtube|code}}:displays a youtube video in a left floating box 300px wide with 3:4 aspect ratio
 * {{youtube|code|caption}}:same as above, but with a caption above the video, inside the box
 * {{youtube|code|caption|16/9}}:same as above, but 16:9 aspect ratio
 * {{youtube|code|caption|aspect ratio|width}}:same as above, but with size parameter
 * {{youtube|code|caption|width=width}}:sets the width, keeps 4:3 default aspect ratio
 * {{youtube|code|width=width|height=height}}:same as  tag, but with 4:3 floating box
 * If caption is left blank, there will be no caption displayed.
 * is appended to the code automatically (but it doesn't hurt if you use it as well)

Parameters
Only the youtube code is required, the other parameters are optional.

{{youtube | 1 = youtube video code (see below), required | 2 = caption, default is no caption | 3 = aspect ratio, can be a fraction or a decimal (16/9 or 1.43), default is 4/3 | 4 = width, default is 300 | width = sets the width (overrides 4), default is 300 | height= sets the height (overrides 3), default is 255 | float = left/right/none; default is left | border= CSS border: for the outer box, default is 2px solid #666 | font = CSS font: for the caption, default is 10pt/125% 'comic sans ms',cursive | style = additional CSS style for the outer box, default is none }}
 * can be used to introduce additional CSS style into the caption cell.

How to find the youtube code

 * Our example is this song: Mad world
 * Have a look at the URL:
 * Notice the code (it's always behind v= ): 4N3N1MlvVc4
 * Make sure the video actually plays on the page, soem videos play on YouTube's website, but cannot be embedded.