Difference between revisions of "Template:YouTube video"

From comp.tf
Jump to navigation Jump to search
m (attempted a fix)
(reverted to simple link temporarily)
Line 1: Line 1:
<div class="mw-customtoggle-{{{1}}}">[[Image:YouTube_icon.png]] {{#if:{{{2|}}}|[[#mw-customcollapsible-{{{1}}}|video]]|}} {{#if:{{{text|}}}|[[#mw-customcollapsible-{{{1}}}|{{{text}}}]]|}}</div>
+
[http://youtu.be/{{{1}}} [[Image:YouTube_icon.png]] {{#if:{{{2|}}}|video|}}{{#if:{{{text|}}}|{{{text}}}|}}<noinclude>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1}}}">
 
<div class="mw-collapsible-content">
 
<html><iframe width="640" height="480" src="//www.youtube.com/embed/{{{1}}}?rel=0" frameborder="0" allowfullscreen></iframe></html>
 
</div>
 
</div><noinclude>
 
 
== Usage ==
 
== Usage ==
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw|text&#125;&#125;</code> generates
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw|text&#125;&#125;</code> generates

Revision as of 21:08, 25 August 2013

[http://youtu.be/{{{1}}} Youtube icon.png

Usage

  • {{YouTube video|LdeDXLuEqQw|text}} generates

[http://youtu.be/LdeDXLuEqQw Youtube icon.png video

  • {{YouTube video|LdeDXLuEqQw}} generates

[http://youtu.be/LdeDXLuEqQw Youtube icon.png

  • {{YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct}} generates

[http://youtu.be/LdeDXLuEqQw Youtube icon.png ESEA S14 LAN Grand Finals Map 3: Viaduct