Importer, Bürokraten, Moderatoren (CommentStreams), flow-bot, Oberflächenadministratoren, Push-Abonnementverwalter, Oversighter, Administratoren, Kampagnenbearbeiter (Hochladeassistent)
854
Bearbeitungen
Keine Bearbeitungszusammenfassung |
Keine Bearbeitungszusammenfassung |
||
Zeile 1: | Zeile 1: | ||
<templatestyles src=Template:YouTube/styles.css /> | <templatestyles src=Template:YouTube/styles.css /> | ||
<includeonly>< | |||
-->{{#if:{{{id|}}}|{{#ev:youtube|{{{id}}}|dimensions={{#if:{{{width|}}}|{{{width}}}|240}}x{{#if:{{{height|}}}|{{{height}}}|185}}}|left|{{#if:{{{description|}}}|<center>{{{description}}}</center>}}|urlArgs=start={{{t}}}}}}} <!-- | <includeonly> | ||
-->{{#if:{{{id2|}}}|{{#ev:youtube|{{{id2}}}|dimensions={{#if:{{{width2|}}}|{{{width2}}}|240}}x{{#if:{{{height2|}}}|{{{height2}}}|185}}}|left|{{#if:{{{description2|}}}|<center>{{{description2}}}</center>}}|urlArgs=start={{{t2}}}}}}} <!-- | |||
-->{{#if:{{{id3|}}}|{{#ev:youtube|{{{id3}}}|dimensions={{#if:{{{width3|}}}|{{{width3}}}|240}}x{{#if:{{{height3|}}}|{{{height3}}}|185}}}|left|{{#if:{{{description3|}}}|<center>{{{description3}}}</center>}}|urlArgs=start={{{t3}}}}}}} <!-- | <div style="margin-right:1em;"><!-- | ||
-->{{#if:{{{id4|}}}|{{#ev:youtube|{{{id4}}}|dimensions={{#if:{{{width4|}}}|{{{width4}}}|240}}x{{#if:{{{height4|}}}|{{{height4}}}|185}}}|left|{{#if:{{{description4|}}}|<center>{{{description4}}}</center>}}|urlArgs=start={{{t4}}}}}}} <!-- | --><div style="float:left;">{{#if:{{{id|}}}|{{#ev:youtube|{{{id}}}|dimensions={{#if:{{{width|}}}|{{{width}}}|240}}x{{#if:{{{height|}}}|{{{height}}}|185}}}|left|{{#if:{{{description|}}}|<center>{{{description}}}</center>}}|urlArgs=start={{{t}}}}}}}</div><!-- | ||
-->{{#if:{{{id5|}}}|{{#ev:youtube|{{{id5}}}|dimensions={{#if:{{{width5|}}}|{{{width5}}}|240}}x{{#if:{{{height5|}}}|{{{height5}}}|185}}}|left|{{#if:{{{description5|}}}|<center>{{{description5}}}</center>}}|urlArgs=start={{{t5}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id2|}}}|{{#ev:youtube|{{{id2}}}|dimensions={{#if:{{{width2|}}}|{{{width2}}}|240}}x{{#if:{{{height2|}}}|{{{height2}}}|185}}}|left|{{#if:{{{description2|}}}|<center>{{{description2}}}</center>}}|urlArgs=start={{{t2}}}}}}}</div><!-- | ||
-->{{#if:{{{id6|}}}|{{#ev:youtube|{{{id6}}}|dimensions={{#if:{{{width5|}}}|{{{width6}}}|240}}x{{#if:{{{height6|}}}|{{{height6}}}|185}}}|left|{{#if:{{{description6|}}}|<center>{{{description6}}}</center>}}|urlArgs=start={{{t6}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id3|}}}|{{#ev:youtube|{{{id3}}}|dimensions={{#if:{{{width3|}}}|{{{width3}}}|240}}x{{#if:{{{height3|}}}|{{{height3}}}|185}}}|left|{{#if:{{{description3|}}}|<center>{{{description3}}}</center>}}|urlArgs=start={{{t3}}}}}}}</div><!-- | ||
-->{{#if:{{{id7|}}}|{{#ev:youtube|{{{id7}}}|dimensions={{#if:{{{width7|}}}|{{{width7}}}|240}}x{{#if:{{{height7|}}}|{{{height7}}}|185}}}|left|{{#if:{{{description7|}}}|<center>{{{description7}}}</center>}}|urlArgs=start={{{t7}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id4|}}}|{{#ev:youtube|{{{id4}}}|dimensions={{#if:{{{width4|}}}|{{{width4}}}|240}}x{{#if:{{{height4|}}}|{{{height4}}}|185}}}|left|{{#if:{{{description4|}}}|<center>{{{description4}}}</center>}}|urlArgs=start={{{t4}}}}}}}</div><!-- | ||
-->{{#if:{{{id8|}}}|{{#ev:youtube|{{{id8}}}|dimensions={{#if:{{{width8|}}}|{{{width8}}}|240}}x{{#if:{{{height8|}}}|{{{height8}}}|185}}}|left|{{#if:{{{description8|}}}|<center>{{{description8}}}</center>}}|urlArgs=start={{{t8}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id5|}}}|{{#ev:youtube|{{{id5}}}|dimensions={{#if:{{{width5|}}}|{{{width5}}}|240}}x{{#if:{{{height5|}}}|{{{height5}}}|185}}}|left|{{#if:{{{description5|}}}|<center>{{{description5}}}</center>}}|urlArgs=start={{{t5}}}}}}}</div><!-- | ||
--> | --><div style="float:left;">{{#if:{{{id6|}}}|{{#ev:youtube|{{{id6}}}|dimensions={{#if:{{{width5|}}}|{{{width6}}}|240}}x{{#if:{{{height6|}}}|{{{height6}}}|185}}}|left|{{#if:{{{description6|}}}|<center>{{{description6}}}</center>}}|urlArgs=start={{{t6}}}}}}}<!-- | ||
-->{{#if:{{{id10|}}}|{{#ev:youtube|{{{id10}}}|dimensions={{#if:{{{width10|}}}|{{{width10}}}|240}}x{{#if:{{{height10|}}}|{{{height10}}}|185}}}|left|{{#if:{{{description10|}}}|<center>{{{description10}}}</center>}}|urlArgs=start={{{t10}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id7|}}}|{{#ev:youtube|{{{id7}}}|dimensions={{#if:{{{width7|}}}|{{{width7}}}|240}}x{{#if:{{{height7|}}}|{{{height7}}}|185}}}|left|{{#if:{{{description7|}}}|<center>{{{description7}}}</center>}}|urlArgs=start={{{t7}}}}}}}</div><!-- | ||
-->{{#if:{{{id11|}}}|{{#ev:youtube|{{{id11}}}|dimensions={{#if:{{{width11|}}}|{{{width11}}}|240}}x{{#if:{{{height11|}}}|{{{height11}}}|185}}}|left|{{#if:{{{description11|}}}|<center>{{{description11}}}</center>}}|urlArgs=start={{{t11}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id8|}}}|{{#ev:youtube|{{{id8}}}|dimensions={{#if:{{{width8|}}}|{{{width8}}}|240}}x{{#if:{{{height8|}}}|{{{height8}}}|185}}}|left|{{#if:{{{description8|}}}|<center>{{{description8}}}</center>}}|urlArgs=start={{{t8}}}}}}}</div><!-- | ||
-->{{#if:{{{id12|}}}|{{#ev:youtube|{{{id12}}}|dimensions={{#if:{{{width12|}}}|{{{width12}}}|240}}x{{#if:{{{height12|}}}|{{{height12}}}|185}}}|left|{{#if:{{{description12|}}}|<center>{{{description12}}}</center>}}|urlArgs=start={{{t12}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id9|}}}|{{#ev:youtube|{{{id9}}}|dimensions={{#if:{{{width9|}}}|{{{width9}}}|240}}x{{#if:{{{height9|}}}|{{{height9}}}|185}}}|left|{{#if:{{{description9|}}}|<center>{{{description9}}}</center>}}|urlArgs=start={{{t9}}}}}}}</div><!-- | ||
--> | --><div style="float:left;">{{#if:{{{id10|}}}|{{#ev:youtube|{{{id10}}}|dimensions={{#if:{{{width10|}}}|{{{width10}}}|240}}x{{#if:{{{height10|}}}|{{{height10}}}|185}}}|left|{{#if:{{{description10|}}}|<center>{{{description10}}}</center>}}|urlArgs=start={{{t10}}}}}}}</div><!-- | ||
-->{{#if:{{{id14|}}}|{{#ev:youtube|{{{id14}}}|dimensions={{#if:{{{width14|}}}|{{{width14}}}|240}}x{{#if:{{{height14|}}}|{{{height14}}}|185}}}|left|{{#if:{{{description14|}}}|<center>{{{description14}}}</center>}}|urlArgs=start={{{t14}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id11|}}}|{{#ev:youtube|{{{id11}}}|dimensions={{#if:{{{width11|}}}|{{{width11}}}|240}}x{{#if:{{{height11|}}}|{{{height11}}}|185}}}|left|{{#if:{{{description11|}}}|<center>{{{description11}}}</center>}}|urlArgs=start={{{t11}}}}}}}</div><!-- | ||
-->{{#if:{{{id15|}}}|{{#ev:youtube|{{{id15}}}|dimensions={{#if:{{{width15|}}}|{{{width15}}}|240}}x{{#if:{{{height15|}}}|{{{height15}}}|185}}}|none|{{#if:{{{description15|}}}|<center>{{{description15}}}</center>}}|urlArgs=start={{{t15}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id12|}}}|{{#ev:youtube|{{{id12}}}|dimensions={{#if:{{{width12|}}}|{{{width12}}}|240}}x{{#if:{{{height12|}}}|{{{height12}}}|185}}}|left|{{#if:{{{description12|}}}|<center>{{{description12}}}</center>}}|urlArgs=start={{{t12}}}}}}}</div><!-- | ||
-->{{#if:{{{id16|}}}|{{#ev:youtube|{{{id16}}}|dimensions={{#if:{{{width16|}}}|{{{width16}}}|240}}x{{#if:{{{height16|}}}|{{{height16}}}|185}}}|left|{{#if:{{{description16|}}}|<center>{{{description16}}}</center>}}|urlArgs=start={{{t16}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id13|}}}|{{#ev:youtube|{{{id13}}}|dimensions={{#if:{{{width13|}}}|{{{width13}}}|240}}x{{#if:{{{height13|}}}|{{{height13}}}|185}}}|left|{{#if:{{{description13|}}}|<center>{{{description13}}}</center>}}|urlArgs=start={{{t13}}}}}}}</div><!-- | ||
-->{{#if:{{{id17|}}}|{{#ev:youtube|{{{id17}}}|dimensions={{#if:{{{width17|}}}|{{{width17}}}|240}}x{{#if:{{{height17|}}}|{{{height17}}}|185}}}|left|{{#if:{{{description17|}}}|<center>{{{description17}}}</center>}}|urlArgs=start={{{t17}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id14|}}}|{{#ev:youtube|{{{id14}}}|dimensions={{#if:{{{width14|}}}|{{{width14}}}|240}}x{{#if:{{{height14|}}}|{{{height14}}}|185}}}|left|{{#if:{{{description14|}}}|<center>{{{description14}}}</center>}}|urlArgs=start={{{t14}}}}}}}</div><!-- | ||
-->{{#if:{{{id18|}}}|{{#ev:youtube|{{{id18}}}|dimensions={{#if:{{{width18|}}}|{{{width18}}}|240}}x{{#if:{{{height18|}}}|{{{height18}}}|185}}}|left|{{#if:{{{description18|}}}|<center>{{{description18}}}</center>}}|urlArgs=start={{{t18}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id15|}}}|{{#ev:youtube|{{{id15}}}|dimensions={{#if:{{{width15|}}}|{{{width15}}}|240}}x{{#if:{{{height15|}}}|{{{height15}}}|185}}}|none|{{#if:{{{description15|}}}|<center>{{{description15}}}</center>}}|urlArgs=start={{{t15}}}}}}}</div><!-- | ||
-->{{#if:{{{id19|}}}|{{#ev:youtube|{{{id19}}}|dimensions={{#if:{{{width19|}}}|{{{width19}}}|240}}x{{#if:{{{height19|}}}|{{{height19}}}|185}}}|left|{{#if:{{{description19|}}}|<center>{{{description19}}}</center>}}|urlArgs=start={{{t19}}}}}}}<!-- | --><div style="float:left;">{{#if:{{{id16|}}}|{{#ev:youtube|{{{id16}}}|dimensions={{#if:{{{width16|}}}|{{{width16}}}|240}}x{{#if:{{{height16|}}}|{{{height16}}}|185}}}|left|{{#if:{{{description16|}}}|<center>{{{description16}}}</center>}}|urlArgs=start={{{t16}}}}}}}</div><!-- | ||
-->{{#if:{{{id20|}}}|{{#ev:youtube|{{{id20}}}|dimensions={{#if:{{{width20|}}}|{{{width20}}}|240}}x{{#if:{{{height20|}}}|{{{height20}}}|185}}}|left|{{#if:{{{description20|}}}|<center>{{{description20}}}</center>}}|urlArgs=start={{{t20}}}}}}}</ | --><div style="float:left;">{{#if:{{{id17|}}}|{{#ev:youtube|{{{id17}}}|dimensions={{#if:{{{width17|}}}|{{{width17}}}|240}}x{{#if:{{{height17|}}}|{{{height17}}}|185}}}|left|{{#if:{{{description17|}}}|<center>{{{description17}}}</center>}}|urlArgs=start={{{t17}}}}}}}</div><!-- | ||
--><div style="float:left;">{{#if:{{{id18|}}}|{{#ev:youtube|{{{id18}}}|dimensions={{#if:{{{width18|}}}|{{{width18}}}|240}}x{{#if:{{{height18|}}}|{{{height18}}}|185}}}|left|{{#if:{{{description18|}}}|<center>{{{description18}}}</center>}}|urlArgs=start={{{t18}}}}}}}</div><!-- | |||
--><div style="float:left;">{{#if:{{{id19|}}}|{{#ev:youtube|{{{id19}}}|dimensions={{#if:{{{width19|}}}|{{{width19}}}|240}}x{{#if:{{{height19|}}}|{{{height19}}}|185}}}|left|{{#if:{{{description19|}}}|<center>{{{description19}}}</center>}}|urlArgs=start={{{t19}}}}}}}</div><!-- | |||
--><div style="float:left;">{{#if:{{{id20|}}}|{{#ev:youtube|{{{id20}}}|dimensions={{#if:{{{width20|}}}|{{{width20}}}|240}}x{{#if:{{{height20|}}}|{{{height20}}}|185}}}|left|{{#if:{{{description20|}}}|<center>{{{description20}}}</center>}}|urlArgs=start={{{t20}}}}}}}</div></div>{{Absatz}} | |||
</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. |
Bearbeitungen