Difference between revisions of "Template:YouTube video"

From comp.tf
Jump to navigation Jump to search
(added video template)
 
 
(6 intermediate revisions by one other user not shown)
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>
+
[[Image:YouTube_icon.png|link=http://youtu.be/{{{1}}}{{#if:{{{time|}}}|?t={{{time}}}}}]] {{#if:{{{text|}}}|[http://youtu.be/{{{1}}} {{{text}}}]|}}<noinclude>
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1}}}">
 
<div class="mw-collapsible-content">
 
<iframe width="640" height="480" src="//www.youtube.com/embed/{{{1}}}?rel=0" frameborder="0" allowfullscreen></iframe>
 
</div>
 
</div><noinclude>
 
 
== Usage ==
 
== Usage ==
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw|text&#125;&#125;</code> generates
 
{{YouTube video|LdeDXLuEqQw|text}}
 
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw&#125;&#125;</code> generates
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw&#125;&#125;</code> generates
 
{{YouTube video|LdeDXLuEqQw}}
 
{{YouTube video|LdeDXLuEqQw}}
 +
* <code>&#123;&#123;YouTube video|1m9COVOvHmg|time=1h26m40s&#125;&#125;</code> generates
 +
{{YouTube video|1m9COVOvHmg|time=1h26m40s}}
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct&#125;&#125;</code> generates
 
* <code>&#123;&#123;YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct&#125;&#125;</code> generates
 
{{YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct}}
 
{{YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct}}
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Latest revision as of 08:30, 23 August 2014

Youtube icon.png

Usage[edit]

  • {{YouTube video|LdeDXLuEqQw}} generates

Youtube icon.png

  • {{YouTube video|1m9COVOvHmg|time=1h26m40s}} generates

Youtube icon.png

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

Youtube icon.png ESEA S14 LAN Grand Finals Map 3: Viaduct