Template:YouTube/doc

This template is a convenient way to embed Youtube videos inside a page. Template is courtesy Pokemon Wiki.


 * Usage


 * Parameters

If no named parameter is used, the first unnamed parameter would be the video ID on Youtube. The second unnamed parameter is optional and would be the caption of the video, displayed below it.

Have in mind that if you put the complete URL of the video, you must use the named parameters instead, since the URL already includes a equal sign "=" and it makes the MediaWiki engine interpret that the text before the equal is a named parameter.

The following named parameters are available:


 * video: youtube URL or video ID.
 * caption (optional): caption to be displayed below the video.
 * width (optional): width of the video in pixels. Height will automatically be calculated.
 * position (optional): fill it with right, center or left to align the video.


 * Video ID on YouTube

The video ID is a string of alphanumeric characters, and it's part of the YouTube URL of the video.

The following examples show YouTube URLs, and the video ID is in bold to help identify it:


 * http:// www.youtube.com/watch?v=0G1QZRPtstI
 * http:// www.youtube.com/watch?v=0G1QZRPtstI&feature=related
 * http:// youtu.be/0G1QZRPtstI