Template:YouTube: Difference between revisions

Jump to navigation Jump to search
fixing tag issue
imported>Robloxfan999
(Undo revision 479301 by A. Smithee (talk) YOU JUST BROKE THE ENTIRE TEMPLATE!!!)
imported>Hb1290
(fixing tag issue)
Line 19: Line 19:
-->{{#if:{{{id18|}}}|{{#ev:youtube|{{{id18}}}|dimensions={{#if:{{{width18|}}}|{{{width18}}}|240}}x{{#if:{{{height18|}}}|{{{height18}}}|185}}}|inline|{{#if:{{{description18|}}}|<center>{{{description18}}}</center>}}|urlArgs=start={{{t18}}}}}}}<!--
-->{{#if:{{{id18|}}}|{{#ev:youtube|{{{id18}}}|dimensions={{#if:{{{width18|}}}|{{{width18}}}|240}}x{{#if:{{{height18|}}}|{{{height18}}}|185}}}|inline|{{#if:{{{description18|}}}|<center>{{{description18}}}</center>}}|urlArgs=start={{{t18}}}}}}}<!--
-->{{#if:{{{id19|}}}|{{#ev:youtube|{{{id19}}}|dimensions={{#if:{{{width19|}}}|{{{width19}}}|240}}x{{#if:{{{height19|}}}|{{{height19}}}|185}}}|inline|{{#if:{{{description19|}}}|<center>{{{description19}}}</center>}}|urlArgs=start={{{t19}}}}}}}<!--
-->{{#if:{{{id19|}}}|{{#ev:youtube|{{{id19}}}|dimensions={{#if:{{{width19|}}}|{{{width19}}}|240}}x{{#if:{{{height19|}}}|{{{height19}}}|185}}}|inline|{{#if:{{{description19|}}}|<center>{{{description19}}}</center>}}|urlArgs=start={{{t19}}}}}}}<!--
-->{{#if:{{{id20|}}}|{{#ev:youtube|{{{id20}}}|dimensions={{#if:{{{width20|}}}|{{{width20}}}|240}}x{{#if:{{{height20|}}}|{{{height20}}}|185}}}|inline|{{#if:{{{description20|}}}|<center>{{{description20}}}</center>}}|urlArgs=start={{{t20}}}}}}}</center><noinclude>
-->{{#if:{{{id20|}}}|{{#ev:youtube|{{{id20}}}|dimensions={{#if:{{{width20|}}}|{{{width20}}}|240}}x{{#if:{{{height20|}}}|{{{height20}}}|185}}}|inline|{{#if:{{{description20|}}}|<center>{{{description20}}}</center>}}|urlArgs=start={{{t20}}}}}}}</center></includeonly>
<noinclude>
<noinclude>
A rewrite of the YouTube template which uses [[mw:Extension:EmbedVideo]]. The markup is unchanged by default, with the exception of the optional <code>width</code> and <code>height</code> parameters being replaced by a single <code>dimensions</code> parameter. For this parameter, input must be expressed as <code>(width) x (height)</code>. The new template also adds an optional <code>description</code> parameter which allows us to caption embedded videos in the same manner as images and directly uploaded videos (finally!). A new <code>t</code> parameter allows you to start the video at a certain timestamp, which didn't work properly with the old YouTube extension. Given EmbedVideo's broader capabilities, versions of this template can be created for Vimeo, Dailymotion, Archive.org and more.  
A rewrite of the YouTube template which uses [[mw:Extension:EmbedVideo]]. The markup is unchanged by default, with the exception of the optional <code>width</code> and <code>height</code> parameters being replaced by a single <code>dimensions</code> parameter. For this parameter, input must be expressed as <code>(width) x (height)</code>. The new template also adds an optional <code>description</code> parameter which allows us to caption embedded videos in the same manner as images and directly uploaded videos (finally!). A new <code>t</code> parameter allows you to start the video at a certain timestamp, which didn't work properly with the old YouTube extension. Given EmbedVideo's broader capabilities, versions of this template can be created for Vimeo, Dailymotion, Archive.org and more.  
Anonymous user

Navigation menu