15,240
edits
mNo edit summary |
(Updated documentation) |
||
Line 3: | Line 3: | ||
==Usage== | ==Usage== | ||
The YouTube template should be called in the following way: | The YouTube template should be called in the following way: | ||
*<code><nowiki>{{YouTube|<videoID>|<title>}}</nowiki></code> | *<code><nowiki>{{YouTube|<videoID>|<title>|<new row?>}}</nowiki></code> | ||
where | where | ||
*<code>Video ID</code> is the ID is the bold part of the URL (<nowiki>http://www.youtube.com/watch?v=</nowiki>'''VqNcksMfAjM''') | *<code>Video ID</code> is the ID is the bold part of the URL (<nowiki>http://www.youtube.com/watch?v=</nowiki>'''VqNcksMfAjM''') | ||
*<code>Title</code> (optional) is the caption for the hiperlink | *<code>Title</code> (optional) is the caption for the hiperlink | ||
*<code>new row?<code> can be empty or <code>br</code>. This parameter tell the template if it should create a new row or not. | |||
==Examples== | ==Examples== | ||
* Specifying video ID and title, <code><nowiki>{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}</nowiki></code> | * Specifying video ID and title. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|br}}</nowiki></code> will produce this: | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|br}} | ||
* Specifying only video ID, <code><nowiki>{{YouTube|VqNcksMfAjM}}</nowiki></code> make the template use URL as title: | * Specifying only video ID. We are embedding only one video, so we should add the <code>br</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM|br}}</nowiki></code> make the template use URL as title since no title was entered: | ||
{{YouTube|VqNcksMfAjM}}<div style="clear:left"></div> | {{YouTube|VqNcksMfAjM}}<div style="clear:left"></div> | ||
==Notes== | ==Notes== | ||
* Using multiple calls will make the videos be side-by-side: | * Using multiple calls will make the videos be side-by-side (the last video should ALWAYS include the <code>br</code> tag to the 3rd parameter): | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|br}} | |||
* | * When you need one video in each row, you should add the <code>br</code> tag to the 3rd parameter of all videos, not just the last: | ||
< | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|br}} | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|br}} | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | |||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} | ||
* If you use this template and forget to | * If you use this template and forget to add the <code>br</code> tag to the 3rd parameter after calling the last video, you'll get something weird, like this topic! |