Difference between revisions of "Template:youtube"
m (Woopsy, left a duplicate of teh template in there, hehe) |
m (forgot to change {{{topic}}} to {{{video}}} (also fixed minor issue with default values, and cleanned a cosmetic issue with the example)) |
||
Line 13: | Line 13: | ||
We can add the optional <tt>title</tt> parm to give it a nicer name: | We can add the optional <tt>title</tt> parm to give it a nicer name: | ||
− | :<tt><nowiki>{{youtube|video=aTF9eZmlgJM|title= | + | :<tt><nowiki>{{youtube|video=aTF9eZmlgJM|title=Astropatrolonium on YouTube}}</nowiki></tt> |
Resulting in: | Resulting in: | ||
− | :{{youtube|video=aTF9eZmlgJM|title= | + | :{{youtube|video=aTF9eZmlgJM|title=Astropatrolonium on YouTube}} |
</noinclude> | </noinclude> | ||
− | <includeonly>[http://www.youtube.com/watch?v={{{video| | + | <includeonly>[http://www.youtube.com/watch?v={{{video|INVALID_VIDEO}}} {{{title|<sup>#{{{video|INVALID_VIDEO}}}</sup> }}}]</includeonly> |
Latest revision as of 09:00, 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:
We can add the optional title parm to give it a nicer name:
- {{youtube|video=aTF9eZmlgJM|title=Astropatrolonium on YouTube}}
Resulting in: