Template:YouTube/doc: Difference between revisions

From Dolphin Emulator Wiki
Jump to navigation Jump to search
(Updated documentation)
mNo edit summary
Line 2: Line 2:


==Usage==
==Usage==
To call the plugin, use
The YouTube template should be called in the following way:
<pre><nowiki>{{YouTube|<video ID>|<title>}}</nowiki></pre>
*<code><nowiki>{{YouTube|<videoID>|<title>}}</nowiki></code>
*<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''')
where
*<code>Title</code> parameter is optional
*<code>Video ID</code> is the ID is the bold part of the URL (<nowiki>http://www.youtube.com/watch?v=</nowiki>'''VqNcksMfAjM''')
===Examples===
*<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:
* 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>
{{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}}<div style="clear:left"></div>

Revision as of 00:52, 5 November 2012

This template provides a simplified way to use the EmbedVideo plugin. It automatically uses the standard thumbnail size and position used on this wiki

Usage

The YouTube template should be called in the following way:

  • {{YouTube|<videoID>|<title>}}

where

  • Video ID is the ID is the bold part of the URL (http://www.youtube.com/watch?v=VqNcksMfAjM)
  • Title (optional) is the caption for the hiperlink

Examples

  • Specifying video ID and title, {{YouTube|VqNcksMfAjM|The Legend of Zelda: The Wind Waker Intro}} produces this:
  • Specifying only video ID, {{YouTube|VqNcksMfAjM}} make the template use URL as title:

Notes

  • Using multiple calls will make the videos be side-by-side:
  • ALWAYs add this after calling the template to properly show other elements from the page or when you need one video in each "line":
<div style="clear:left"></div>
  • If you call this template and forget to use a <div style="clear:left"></div> after, you'll get something weird, like this entry!