Jump to content

Template:Youtube: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1: Line 1:
<includeonly><center><table>
<includeonly><table style="margin:auto">
<tr>
<tr>
{{#if:{{{title1|}}}|<th> [http://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </th>}}
{{#if:{{{title1|}}}|<th> [http://www.youtube.com/watch?v={{{video1}}} {{{title1}}}] </th>}}
Line 5: Line 5:
</tr>
</tr>
<tr>
<tr>
{{#if:{{{video1|}}}|<td>{{{embed1}}}</td>}}
{{#if:{{{video1|}}}|<td>{{#widget:YouTube|id={{{video1}}}|width={{#if:{{{width1|}}}|{{{width1}}}|500}}</td>}}
{{#if:{{{video2|}}}|<td>{{{embed2}}}</td>}}
{{#if:{{{video2|}}}|<td>{{#widget:YouTube|id={{{video2}}}|width={{#if:{{{width2|}}}|{{{width2}}}|500}}</td>}}
</tr>
</tr>
</table></center>
</table></includeonly><noinclude>
</includeonly><noinclude>
<pre>
<pre>
{{embedyt
{{embedyt
|video1 = First YouTube video ID
|video1 = First YouTube video ID
|embed1 = <youtube>Video ID</youtube>
|title1 = Video title (optional)
|title1 = Video title (optional)
|video2 = Second YouTube video ID
|video2 = Second YouTube video ID
|embed2 = <youtube>Video ID</youtube>
|title2 = Video title (optional)
|title2 = Video title (optional)
}}
}}
</pre></noinclude>
</pre></noinclude>
12,236

edits

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