Template:Youtube

From Uncyclopedia, the content-free encyclopedia
Jump to navigation Jump to search
Ugh, it seems that the Youtube Javascript code wants nothing to do with the first template argument {{{1}}}, making the idea of this template essentially worthless. <youtube width="640" height="480">tM_7ZinEDKI</youtube> will work, but <youtube width="640" height="480">{{{1}}}</youtube> or even <youtube width="640" height="480">{{{1|tM_7ZinEDKI}}}</youtube> (the latter should ALWAYS work) will just break it every time judging from the HTML source code and the test windows. Perhaps some workaround is possible, but this template is dysfunctional till someone can correct this shortcoming.



A template used to create a window similar to an image thumb window but with a YouTube clip in place of the image. The syntax is as follows:

{{Youtube|1st|2nd|3rd|4th|5th}}

Where

1st = Clip ID (ie, tM_7ZinEDKI)
2nd = caption
3rd = width (480 by default)
4th = height (320 by default)
5th = Alignment: left, center or right (default)



Example:

{{Youtube| tM_7ZinEDKI | [[YouTube|AAAAAAA]] AA A AAAAAAA AAAA AA [[AAAAAAAAA!|AAAAAAAAA]]... | 640 | 480 | center}} generates

<youtube width="640" height="480">tM_7ZinEDKI</youtube>
Youtubelogo.png
AAAAAAA AA A AAAAAAA AAAA AA AAAAAAAAA...


and {{Youtube| tM_7ZinEDKI | [[YouTube|AAAAAAA]] AA A AAAAAAA AAAA AA [[AAAAAAAAA!|AAAAAAAAA]]... | 266 | 199 and 200 | right}} generates

<youtube width="260" height="199">tM_7ZinEDKI</youtube>
 AAAAAAA AA A AAAAAAA AAAA AA AAAAAAAAA...
<youtube width="260" height="200">tM_7ZinEDKI</youtube>
Youtubelogo.png
AAAAAAA AA A AAAAAAA AAAA AA AAAAAAAAA...


Note: a height less than 200 will result in an ommition of the YouTube icon.