Template:YouTube/doc

This template should be used to embed YouTube videos.

Usage

 * Using this template on a page categorizes the page into Category:Pages with videos unless  is used.

Parameters
{	"params": { "1": {			"label": "Video ID", "description": "The video ID that must be added.", "type": "string", "suggested": true },		"2": {			"label": "Video dimensions", "description": "Changes the dimensions of the video.", "type": "string" },		"align": { "label": "Video alignment", "description": "Changes the alignment of the video.", "type": "string" },		"caption": { "label": "Video caption", "description": "Adds an optional caption for the video.", "type": "string" },		"nocat": { "label": "Category supressor", "description": "Prevents Category:Pages with videos to be added to a page using this template.", "type": "string" }	},	"description": "This template adds a video that can be embedded on a page directly instead on needing to upload it directly to the wiki.", "format": "inline" }

Examples

 * Default usage


 * Custom width


 * Inline alignment


 * Custom caption