Difference between revisions of "Template:Youtube"

From Starsonata Wiki
Jump to: navigation, search
(stealing template from http://www.mediawiki.org/wiki/Extension:EmbedVideo)
 
m (6 revisions)
 
(5 intermediate revisions by one other user not shown)
Line 1: Line 1:
 
<includeonly><div class="thumb tright">
 
<includeonly><div class="thumb tright">
{{#ev:youtube|{{{1}}}|{{{2|100}}}}}
+
{{#ev:youtube|{{{1}}}|{{{2|350}}}}}
 
</div></includeonly><noinclude>
 
</div></includeonly><noinclude>
 +
== How to Use... ==
 +
To embed a video use this template with this syntax: <code><nowiki>{{youtube|videoID|size}}</nowiki></code>. The size defaults to 350 pixels if none is supplied. The video ID is a seemingly random set of characters at the end of the address.  For example, take this link: <code>http://youtube.com/watch?v=--Xdf13x3Po</code> - The 11 characters after the "?v=" is the ID. <code><nowiki>{{youtube|--Xdf13x3Po|100}}</nowiki></code>
  
== How to Use... ==
+
</noinclude>
To embed a video call this template like this: <code><nowiki>{{youtube|videoID|size}}</nowiki></code>. The size defaults to 100 if none is supplied. The video ID is a seemingly random set of characters at the end of the address.  For example, take this link: <code>http://youtube.com/watch?v=--Xdf13x3Po</code> - The 11 characters after the "?v=" is the ID. <code><nowiki>{{youtube|--Xdf13x3Po|100}}</nowiki></code>
 

Latest revision as of 19:00, 18 November 2008

How to Use...

To embed a video use this template with this syntax: {{youtube|videoID|size}}. The size defaults to 350 pixels if none is supplied. The video ID is a seemingly random set of characters at the end of the address. For example, take this link: http://youtube.com/watch?v=--Xdf13x3Po - The 11 characters after the "?v=" is the ID. {{youtube|--Xdf13x3Po|100}}