Template:Youtube: Difference between revisions

Updating with #ev (embed video)
No edit summary
(Updating with #ev (embed video))
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><center><table>
<includeonly><table style="margin:auto">
<tr>
<tr>
{{#if:{{{title1|}}}|<td> [http://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </td>}}
{{#if:{{{title1|}}}|<th style="text-align:center"> [http://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </th>}}
{{#if:{{{title2|}}}|<td> [http://www.youtube.com/watch?v={{{video2}}} {{{title2}}}] </td>}}
{{#if:{{{title2|}}}|<th style="text-align:center"> [http://www.youtube.com/watch?v={{{video2}}} {{{title2}}}] </th>}}
</tr>
</tr>
<tr>
<tr>
{{#if:{{{video1|}}}|<td> test {{{video1}}} </td>}}
{{#if:{{{video1|}}}|<td>{{#ev:youtube|{{{video1}}}|{{#if:{{{width1|}}}|{{{width1}}}|500}}}}</td>}}
{{#if:{{{video2|}}}|<td> test {{{video2}}} </td>}}
{{#if:{{{video2|}}}|<td>{{#ev:youtube|{{{video2}}}|{{#if:{{{width2|}}}|{{{width2}}}|500}}}}</td>}}
</tr>
</tr>
</table></center>
</table></includeonly><noinclude>{{doc}}</noinclude>
</includeonly><noinclude>
<pre>
{{embedyt
|video1 = First YouTube video ID
|title1 = First video title (optional)
|video2 = Second YouTube video ID
|title2 = Second video title (optional)
}}
</pre></noinclude>