This template is protected from editing.

Difference between revisions of "Template:Youtube"

From Team Fortress Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#evp:youtube|{{{1}}}|{{{width|500}}}}}</includeonly><noinclude>Template to add a YouTube video.
+
{{#evp:youtube|{{{1|I3yKmjMmo6M}}}|{{{width|500}}}}}{{#if:{{{2|<noinclude>1</noinclude>}}}|<br>
 +
:''{{{2|<noinclude>Caption goes here.</noinclude>}}}''}}<noinclude>
 +
 
 +
{{Doc begin}}
 +
Template embeds a YouTube video with no frame.
 
== Syntax ==
 
== Syntax ==
 
Basic:
 
Basic:
Line 10: Line 14:
 
;Width: Width of the video, in pixels. Height is automatically calculated. Default is 500px.
 
;Width: Width of the video, in pixels. Height is automatically calculated. Default is 500px.
 
;Align: Horizontal alignment of video. Default is left.
 
;Align: Horizontal alignment of video. Default is left.
 +
 +
== See also ==
 +
* {{tl|Youtube tn}}
 
[[Category:Formatting templates|Youtube]]
 
[[Category:Formatting templates|Youtube]]
 +
 
</noinclude>
 
</noinclude>

Revision as of 16:11, 14 September 2010

The #evp parser function was deprecated in EmbedVideo 2.0. Please convert your parser function tag to #ev.


Caption goes here.

Documentation for Youtube

Template embeds a YouTube video with no frame.

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 automatically calculated. Default is 500px.
Align
Horizontal alignment of video. Default is left.

See also