Template:YouTube video/doc
Jump to navigation
Jump to search
Embeds a YouTube video.
Usage
Basic usage: {{YouTube video|Video ID}}
All parameters: {{YouTube video|Video ID|dimensions|alignment}}
Parameter details:
Video ID- The ID of the YouTube video, which is the part that comes after "watch?v=" in the URL. Can also be the full URL. Example:dQw4w9WgXcQdimensions- The width and/or height in pixels of the video embed. Width can just be a number, height must have an "x" before the number. Examples:480to specify a width of 480.x320to specify a height of 320.480x320to specify both a width of 480 and a height of 320.alignment- Whether to align the video on the left, right, or center of the page.
Example
{{YouTube video|dQw4w9WgXcQ|480}} outputs:
Template data
Embeds a YouTube video.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Video ID | 1 | The ID of the YouTube video, which is the part that comes after "watch?v=" in the URL. Can also be the full URL.
| String | required |
| Dimensions | 2 | What dimensions to make the embedded video.
| Unknown | suggested |
| Alignment | 3 | Whether to align the video in the left, right, or center of the page.
| String | suggested |