This template is protected from editing.
Difference between revisions of "Template:Youtube"
(Added ratio stuff) |
(I dunnit again) |
||
Line 1: | Line 1: | ||
− | <div class="youtubebox ratio-{{{ratio|16x9}}}" style="margin:0.75em 0em;"> | + | <div class="youtubebox ratio-{{{ratio|16x9}}} quality-{{{quality|default}}}" style="margin:0.75em 0em;"> |
{{#evp:youtube|{{{1|I3yKmjMmo6M}}}|no do|{{{align|left}}}|{{{width|512}}}}}{{#if:{{{2|<noinclude>yes</noinclude>}}} | {{#evp:youtube|{{{1|I3yKmjMmo6M}}}|no do|{{{align|left}}}|{{{width|512}}}}}{{#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> | ||
Line 16: | Line 16: | ||
<nowiki>{{youtube|YouTube id|width=value|align=alignment}}</nowiki> | <nowiki>{{youtube|YouTube id|width=value|align=alignment}}</nowiki> | ||
− | ;YouTube Video | + | ;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. | ;Width: Width of the video, in pixels. Height is calculated based on ratio. Default is 512px. | ||
;Align: Horizontal alignment of video. Default is left. | ;Align: Horizontal alignment of video. Default is left. | ||
;Ratio: Ratio of embedded video, with <code>x</code> as separator (Example: <code>4x3</code>). Default is <code>16x9</code>. | ;Ratio: Ratio of embedded video, with <code>x</code> as separator (Example: <code>4x3</code>). Default is <code>16x9</code>. | ||
+ | ;Quality: Default quality of embedded video, as a {{w|YouTube#Quality and codecs|YouTube quality ID (<code>fmt</code> parameter)}}. Default is to let YouTube decide. Users may override this value in their YouTube preferences. | ||
=== See also === | === See also === |
Revision as of 20:53, 4 February 2011
The #evp parser function was deprecated in EmbedVideo 2.0. Please convert your parser function tag to #ev.
Caption here.
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.
- Align
- Horizontal alignment of video. Default is left.
- Ratio
- Ratio of embedded video, with
x
as separator (Example:4x3
). Default is16x9
. - Quality
- Default quality of embedded video, as a Template:W. Default is to let YouTube decide. Users may override this value in their YouTube preferences.
See also
{{youtube tn}}