15,188
edits
(create /doc) |
(Updated documentation) |
||
Line 1: | Line 1: | ||
Template | 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 | ||
* {{{ | |||
* {{{ | ==Usage== | ||
To call the plugin, use | |||
<pre><nowiki>{{YouTube|<video ID>|<title>}}</nowiki></pre> | |||
*<code>Video ID</code> parameter is mandatory. The ID is the bold part of the URL (<nowiki>http://www.youtube.com/watch?v=</nowiki>'''VqNcksMfAjM''') | |||
*<code>Title</code> parameter is optional | |||
===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 call this template and forget to use a <code><div style="clear:left"></div></code> after, you'll get something weird, like this entry! |