Template:Youtube: Difference between revisions

Jump to navigation Jump to search
Undo revision 185428 by CatMurderer (talk)
(Remove auto lang cat, deprecated.)
(Undo revision 185428 by CatMurderer (talk))
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div class="youtubebox ratio-{{{ratio|16x9}}} hd-{{#if:{{{hd|{{{audio|}}}}}}|on|off}} widths-{{{widths|{{{width|512}}}}}} {{#if:{{{audio|}}}|youtube-audio|}}" style="margin:0.75em 0em;">
<div class="youtubebox ratio-{{{ratio|16x9}}} hd-{{#if:{{{hd|{{{audio|}}}}}}|on|off}} widths-{{{widths|{{{width|448}}}}}} {{#if:{{{audio|}}}|youtube-audio|}}" style="margin:0.75em 0em;">
{{#if: {{{align|}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|512}}}|{{{align}}}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|512}}}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}}
{{#if: {{{align|}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|512}}}|{{{align}}}}}|{{#ev:youtube|{{{1|tax4e4hBBZc}}}|{{{width|448}}}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}}
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div>
| <br /><div style="margin-top:0.75em;">{{hatnote|1={{{2|Caption here.}}}}}</div>
}}</div><noinclude>{{Doc begin}}
}}</div><noinclude>{{Doc begin}}
Line 14: Line 14:


;YouTube Video ID: The YouTube video id of the video to include.
;YouTube Video ID: The YouTube video id of the video to include.
;{{code|width}}: Width of the video, in pixels. Height is calculated based on ratio. Default is 512px.
;{{code|width}}: Width of the video, in pixels. Height is calculated based on ratio. Default is 448px.
;{{code|widths}}: If specified, must be a list of hyphen-separated integers representing possible video widths (Example: <code>460-500-700</code>). The video size will be based on the browser window size and the ratio of the video. If left unspecified, the video will stay at the value of the <code>width</code> attribute.
;{{code|widths}}: If specified, must be a list of hyphen-separated integers representing possible video widths (Example: <code>460-500-700</code>). The video size will be based on the browser window size and the ratio of the video. If left unspecified, the video will stay at the value of the <code>width</code> attribute.
;{{code|align}}: Horizontal alignment of video. Default is left.
;{{code|align}}: Horizontal alignment of video. Default is left.
162

edits

Navigation menu