Template:YouTube/doc: Difference between revisions

Jump to navigation Jump to search
no edit summary
mNo edit summary
No edit summary
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
This template provides a simplified way to use the [[Template:EmbedVideo|EmbedVideo]] plugin. It automatically uses the standard thumbnail size and position used on this wiki
<!--- THIS TEMPLATE USES A GLOBAL DOCUMENTATION! --->
 
<!--- To make changes, go to Template:EmbedVideo --->
==Usage==
{{EmbedVideo|youtube}}
The YouTube template should be called in the following way:
*<code><nowiki>{{YouTube|<videoID>|<title>}}</nowiki></code>
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>Title</code> (optional) is the caption for the hiperlink
==Examples==
* Specifying video ID and title, <code><nowiki>{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}</nowiki></code> produces this:
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}<div style="clear:left"></div>
 
* Specifying only video ID, <code><nowiki>{{YouTube|VqNcksMfAjM}}</nowiki></code> make the template use URL as title:
{{YouTube|VqNcksMfAjM}}<div style="clear:left"></div>
 
==Notes==
* Using multiple calls will make the videos be side-by-side:
{{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}}
<div style="clear:left"></div>
 
* ALWAYs add this after calling the template to properly show other elements from the page or when you need one video in each "line":
<pre><div style="clear:left"></div></pre>
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}<div style="clear:left"></div>
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}<div style="clear:left"></div>
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}
 
* If you use this template and forget to use a <code>&lt;div style="clear:left"&gt;&lt;/div&gt;</code> after calling it, you'll get something weird, like this topic!

Navigation menu