Difference between revisions of "Template:YouTube video"

From comp.tf
Jump to navigation Jump to search
m (oops, fixed for real)
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
[[Image:YouTube_icon.png|link=http://youtu.be/{{{1}}}]] {{#if:{{{2|}}}|[http://youtu.be/{{{1}}} video]|}} {{#if:{{{text|}}}|[http://youtu.be/{{{1}}} {{{text}}}]|}}
+
[[Image:YouTube_icon.png|link=http://youtu.be/{{{1}}}{{#if:{{{time|}}}|?t={{{time}}}}}]] {{#if:{{{text|}}}|[http://youtu.be/{{{1}}} {{{text}}}]|}}<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