15,191
edits
Progress Continues
We've already had 21646 updates since Dolphin 5.0. Keep up with Dolphin's continuing progress through the Dolphin Blog: February, March, and April 2024 Dolphin Progress Report. |
The Dolphin Emulator Wiki needs your help! Dolphin can play thousands of games, and changes are happening all the time. Help us keep up! Join in and help us make this the best resource for Dolphin. |
(Updated documentation) |
No edit summary |
||
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>|< | *<code><nowiki>{{YouTube|<videoID>|<title>|<options>}}</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 video | *<code>Title</code> (optional) is the caption for the video | ||
*<code> | *<code>options</code> (optional) control some other functionalities of this template. Specifying <code>br</code> in this parameter tell the template to create a new row after embedding the video. Specifying <code>link</code> makes the template return only a hiperlink to watch the video on YouTube. | ||
==Examples== | ==Examples== | ||
* | * Embed a video by specifying video ID and title. Titles longer than the box will automatically be truncated. 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 with title longer than box|br}}</nowiki></code> will produce this: | ||
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro with title longer than box|br}} | {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro with title longer than box|br}} | ||
* | * Embed a video by specifying only video ID, so the 2nd parameter is null. 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||br}} | {{YouTube|VqNcksMfAjM||br}} | ||
* 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}} | |||
* 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}} | |||
==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> | |||
* 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}} |