Difference between revisions of "Template:youtube"

m (Converted from the {{forumlink}} template)
 
m (Woopsy, left a duplicate of teh template in there, hehe)
Line 19: Line 19:
 
</noinclude>
 
</noinclude>
 
<includeonly>[http://www.youtube.com/watch?v={{{video|INVALID_VIDEO_LINK}}} {{{title|<sup>#{{{topic}}}</sup> }}}]</includeonly>
 
<includeonly>[http://www.youtube.com/watch?v={{{video|INVALID_VIDEO_LINK}}} {{{title|<sup>#{{{topic}}}</sup> }}}]</includeonly>
 
[http://www.youtube.com/watch?v={{{video|INVALID_VIDEO_LINK}}} {{{title|<sup>#{{{topic}}}</sup> }}}]
 

Revision as of 08:57, 15 September 2010

A small template to link to a video on YouTube.

its a basic template that takes one key parm, and one optional parm as follows.

Given the link:

http://www.youtube.com/watch?v=aTF9eZmlgJM

The template should be called as:

{{youtube|video=aTF9eZmlgJM}}

Resulting in:

#aTF9eZmlgJM

We can add the optional title parm to give it a nicer name:

{{youtube|video=aTF9eZmlgJM|title=[[Astropatrolonium]] on YouTube}}

Resulting in:

Astropatrolonium on YouTube