Difference between revisions of "Template:Youtube"

From Team Fortress Wiki
Jump to: navigation, search
m (Test)
Line 1: Line 1:
<includeonly>{{#evp:youtube|{{{1}}}}}</includeonly><noinclude>Template to add a YouTube video.
+
<includeonly>{{#evp:youtube|{{{1}}}|{{{width|500}}}|{{{align|left}}}}}</includeonly><noinclude>Template to add a YouTube video.
 
== Syntax ==
 
== Syntax ==
 
Basic:
 
Basic:
Line 5: Line 5:
  
 
With a defined thumbnail width:
 
With a defined thumbnail width:
  <nowiki>{{youtube|YouTube id|desc=description|width=value|align=alignment}}</nowiki>
+
  <nowiki>{{youtube|YouTube id|width=value|align=alignment}}</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.
+
;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 300px.
+
;Align: Horizontal alignment of video. Default is left.
 
[[Category:Formatting templates|Youtube]]
 
[[Category:Formatting templates|Youtube]]
 
</noinclude>
 
</noinclude>

Revision as of 14:36, 14 September 2010

Template to add a YouTube video.

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.