Template:YouTube/Documentation: Difference between revisions

Template page
w:c:strategywiki>Prod
m (→‎Example: fix layout)
w:c:strategywiki>Najzere
(update)
Line 1: Line 1:
[[Image:YouTube logo.png|left]]
[[Image:YouTube logo.png]]
 
This is a template for [http://www.youtube.com YouTube] videos.
This is a template for [http://www.youtube.com YouTube] videos.


This template is used as follows:
This template is used as follows:
<pre>{{YouTube
<pre>{{YouTube
|video=ID of the video (not its full URL)
|float=left, right, or none (default: right)
|float=left, right, or none (default: right)
|video=ID of the video (not its full URL)
|width=width in pixels without "px" (default:200)
|title=name of the video
|title=name of the video
|duration=duration in minutes:seconds (optional)
|duration=duration in minutes:seconds (optional)
|image=the number (1-3) of the image you want to use (2 if blank)
|description=description of the video (optional)
|description=description of the video (optional)
}}</pre>
}}</pre>
Line 14: Line 15:
==Example==
==Example==
{{YouTube
{{YouTube
|video=wsCNoJagyL8
|float=right
|float=right
|video=wsCNoJagyL8
|width=350
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|duration=9:42
|duration=9:42
Line 22: Line 24:
<pre>
<pre>
{{YouTube
{{YouTube
|video=wsCNoJagyL8
|float=right
|float=right
|video=wsCNoJagyL8
|width=350
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|duration=9:42
|duration=9:42

Revision as of 23:58, 30 July 2011

This is a template for YouTube videos.

This template is used as follows:

{{YouTube
|video=ID of the video (not its full URL)
|float=left, right, or none (default: right)
|width=width in pixels without "px" (default:200)
|title=name of the video
|duration=duration in minutes:seconds (optional)
|description=description of the video (optional)
}}

Example

{{#ev:youtube|wsCNoJagyL8|350|right|Nonlethal Walkthrough - Lebedev's Airfield (1/4) (9:42)
From Battery Park through Brooklyn Bridge Station.||}}

{{YouTube
|video=wsCNoJagyL8
|float=right
|width=350
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|duration=9:42
|description=From Battery Park through Brooklyn Bridge Station.
}}