Template:YouTube/doc: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 17: Line 17:


* Return a hiperlink to watch the video on YouTube by specifying video ID and title. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|link}}</nowiki></code> will produce this:
* Return a hiperlink to watch the video on YouTube by specifying video ID and title. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|link}}</nowiki></code> will produce this:
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|link}}
:{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro|link}}




* Return a hiperlink to watch the video on YouTube by specifying only video ID. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM||link}}</nowiki></code> make the template use URL as title since no title was entered:
* Return a hiperlink to watch the video on YouTube by specifying only video ID. We want only the hiperlink, so we should add the <code>link</code> tag to the 3rd parameter. In this example, <code><nowiki>{{YouTube|VqNcksMfAjM||link}}</nowiki></code> make the template use URL as title since no title was entered:
{{YouTube|VqNcksMfAjM||link}}
:{{YouTube|VqNcksMfAjM||link}}


==Notes==
==Notes==
* To use only video ID and an option, you must null the 2nd parameter by using ||, like this: <code><nowiki>{{YouTube|<videoID>||<options>}}</nowiki></code>
* To use only video ID and an option, you must null the 2nd parameter by using ||, like this: <code><nowiki>{{YouTube|<videoID>||<options>}}</nowiki></code>
* The 3rd parameter only accept one option. If you include more than one option, none of them will work.
* 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):
* 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}}