Difference between revisions of "Template:Youtube"
Line 1: | Line 1: | ||
− | <includeonly>{{#evp:youtube|{{{1}}}}}</includeonly> | + | <includeonly>{{#evp:youtube|{{{1}}}|{{{description|}}}|{{{width|}}}}}</includeonly> |
<noinclude>Template to add a YouTube video with thumbnail caption. | <noinclude>Template to add a YouTube video with thumbnail caption. | ||
== Syntax == | == Syntax == | ||
Basic: | Basic: | ||
− | <nowiki>{{youtube | + | <nowiki>{{youtube|YouTube id}}</nowiki> |
With a defined thumbnail width: | With a defined thumbnail width: | ||
− | <nowiki>{{youtube | + | <nowiki>{{youtube|YouTube id|description|width=value}}</nowiki> |
;YouTube Video Id: The YouTube video id of the video to include. | ;YouTube Video Id: The YouTube video id of the video to include. | ||
;Description: Text description that appears under the video. | ;Description: Text description that appears under the video. | ||
;Width: Width of the video, in pixels. Height is automatically calculated. Default is 300px. | ;Width: Width of the video, in pixels. Height is automatically calculated. Default is 300px. |
Revision as of 16:32, 29 June 2010
Template to add a YouTube video with thumbnail caption.
Syntax
Basic:
{{youtube|YouTube id}}
With a defined thumbnail width:
{{youtube|YouTube id|description|width=value}}
- YouTube Video Id
- The YouTube video id of the video to include.
- Description
- Text description that appears under the video.
- Width
- Width of the video, in pixels. Height is automatically calculated. Default is 300px.