Difference between revisions of "Template:YouTube video"
Jump to navigation
Jump to search
(added video template) |
m (attempted a fix) |
||
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> | + | <div class="mw-customtoggle-{{{1}}}">[[Image:YouTube_icon.png]] {{#if:{{{2|}}}|[[#mw-customcollapsible-{{{1}}}|video]]|}} {{#if:{{{text|}}}|[[#mw-customcollapsible-{{{1}}}|{{{text}}}]]|}}</div> |
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1}}}"> | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-{{{1}}}"> | ||
<div class="mw-collapsible-content"> | <div class="mw-collapsible-content"> | ||
− | <iframe width="640" height="480" src="//www.youtube.com/embed/{{{1}}}?rel=0" frameborder="0" allowfullscreen></iframe> | + | <html><iframe width="640" height="480" src="//www.youtube.com/embed/{{{1}}}?rel=0" frameborder="0" allowfullscreen></iframe></html> |
</div> | </div> | ||
</div><noinclude> | </div><noinclude> |
Revision as of 16:39, 25 August 2013
<html><iframe width="640" height="480" src="//www.youtube.com/embed/{{{1}}}?rel=0" frameborder="0" allowfullscreen></iframe></html>
Usage
{{YouTube video|LdeDXLuEqQw|text}}
generates
<html><iframe width="640" height="480" src="//www.youtube.com/embed/LdeDXLuEqQw?rel=0" frameborder="0" allowfullscreen></iframe></html>
{{YouTube video|LdeDXLuEqQw}}
generates
<html><iframe width="640" height="480" src="//www.youtube.com/embed/LdeDXLuEqQw?rel=0" frameborder="0" allowfullscreen></iframe></html>
{{YouTube video|LdeDXLuEqQw|text=ESEA S14 LAN Grand Finals Map 3: Viaduct}}
generates
<html><iframe width="640" height="480" src="//www.youtube.com/embed/LdeDXLuEqQw?rel=0" frameborder="0" allowfullscreen></iframe></html>