Template:Youtube/sandbox
Usage
{{youtube|videoid|width|align=}}
Using this template on a page categorizes the page into Category:Pages with videos.
Examples
Default width (425px): {{#ev:youtube|UHFsZy5QIcw||urlArgs=start=283&end=731;rel=0}}
Custom width: {{#ev:youtube|UHFsZy5QIcw|720|urlArgs=start=283&end=731;rel=0}}
Inline alignment: {{#ev:youtube|UHFsZy5QIcw|align=inline|urlArgs=start=283&end=731;rel=0}}
Description: {{#ev:youtube|UHFsZy5QIcw|description = Video description goes here|urlArgs=start=283&end=731;rel=0}}
Templatedata
Template for embedding Youtube videos
Parameter | Description | Type | Status | |
---|---|---|---|---|
video ID | 1 videoid | the video ID of the youtube video to embed
| String | required |
width | 2 width | The width of the embedded video in the page in pixels
| Number | optional |
align | align | The alignment of the video (left/right/inline)
| String | optional |
description | description | A short description to be rendered beneath the video embed.
| String | suggested |
urlArgs | urlArgs | Customizing YouTube's Embed Players URL Parameter Settings (documentation available at https://developers.google.com/youtube/player_parameters)
| String | optional |