Jump to content

Template:Youtube: Difference between revisions

no edit summary
m (Gboyers moved page Template:Embedyt to Template:Youtube: May as well use a better name, right?)
No edit summary
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><table style="margin:auto">
<includeonly><table style="margin:auto">
<tr>
<tr>
{{#if:{{{title1|}}}|<th> [http://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </th>}}
{{#if:{{{title1|}}}|<th style="text-align:center"> [https://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </th>}}
{{#if:{{{title2|}}}|<th> [http://www.youtube.com/watch?v={{{video2}}} {{{title2}}}] </th>}}
{{#if:{{{title2|}}}|<th style="text-align:center"> [https://www.youtube.com/watch?v={{{video2}}} {{{title2}}}] </th>}}
{{#if:{{{title3|}}}|<th style="text-align:center"> [https://www.youtube.com/watch?v={{{video3}}} {{{title3}}}] </th>}}
{{#if:{{{title4|}}}|<th style="text-align:center"> [https://www.youtube.com/watch?v={{{video4}}} {{{title4}}}] </th>}}
{{#if:{{{title5|}}}|<th style="text-align:center"> [https://www.youtube.com/watch?v={{{video5}}} {{{title5}}}] </th>}}
</tr>
</tr>
<tr>
<tr>
{{#if:{{{video1|}}}|<td>{{#widget:YouTube|id={{{video1}}}|width={{#if:{{{width1|}}}|{{{width1}}}|500}}}}</td>}}
{{#if:{{{video1|}}}|<td>{{#ev:youtube|{{{video1}}}|{{#if:{{{width1|}}}|{{{width1}}}|500}}}}</td>}}
{{#if:{{{video2|}}}|<td>{{#widget:YouTube|id={{{video2}}}|width={{#if:{{{width2|}}}|{{{width2}}}|500}}}}</td>}}
{{#if:{{{video2|}}}|<td>{{#ev:youtube|{{{video2}}}|{{#if:{{{width2|}}}|{{{width2}}}|500}}}}</td>}}
{{#if:{{{video3|}}}|<td>{{#ev:youtube|{{{video3}}}|{{#if:{{{width3|}}}|{{{width3}}}|500}}}}</td>}}
{{#if:{{{video4|}}}|<td>{{#ev:youtube|{{{video4}}}|{{#if:{{{width4|}}}|{{{width4}}}|500}}}}</td>}}
{{#if:{{{video5|}}}|<td>{{#ev:youtube|{{{video5}}}|{{#if:{{{width5|}}}|{{{width5}}}|500}}}}</td>}}
</tr>
</tr>
</table></includeonly><noinclude>
</table></includeonly><noinclude>{{doc}}</noinclude>
<pre>
{{embedyt
|video1 = First YouTube video ID
|title1 = Video title (optional)
|width1 = Width of video (optional, default 500 pixels)
|video2 = Second YouTube video ID
|title2 = Video title (optional)
|width2 = Width of video (optional, default 500 pixels)
}}
</pre></noinclude>
1,184

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.