Template:Youtube: Difference between revisions
Jump to navigation
Jump to search
m (If audio is true, then the video should be automatically in HD because the audio quality is also much improved on HD videos) |
m (Stoopid documentation listing normal case parameters when the actual ones are lowercase. Should clear up any ambiguity.) |
||
Line 17: | Line 17: | ||
;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|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|ratio}}: Ratio of embedded video, with <code>x</code> as separator (Example: <code>4x3</code>). Default is <code>16x9</code>. | ||
; | ;{{code|hd}}: Whether HD should be turned on or off by default. Default is to let YouTube decide. YouTube users may override this value in their YouTube preferences. This parameter can be set to {{code|on}} or {{code|off}}. | ||
; | ;{{code|audio}}: Whether this video should be presented as an audio file (display only the seek bar, no video). This parameter can be set to {{code|on}} or {{code|off}}. | ||
=== See also === | === See also === |
Revision as of 17:01, 15 June 2011
Caption here.
The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.
This is normal.
Documentation for Youtube
This template will embed a video inside an article.
Syntax
Basic:
{{youtube|YouTube id}}
With a defined thumbnail width:
{{youtube|YouTube id|width=value|align=alignment}}
- YouTube Video ID
- The YouTube video id of the video to include.
width
- Width of the video, in pixels. Height is calculated based on ratio. Default is 512px.
widths
- If specified, must be a list of hyphen-separated integers representing possible video widths (Example:
460-500-700
). 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 thewidth
attribute. align
- Horizontal alignment of video. Default is left.
ratio
- Ratio of embedded video, with
x
as separator (Example:4x3
). Default is16x9
. hd
- Whether HD should be turned on or off by default. Default is to let YouTube decide. YouTube users may override this value in their YouTube preferences. This parameter can be set to
on
oroff
. audio
- Whether this video should be presented as an audio file (display only the seek bar, no video). This parameter can be set to
on
oroff
.
See also
{{youtube tn}}