Template:YouTube/Documentation: Difference between revisions

Template page
w:c:strategywiki>Notmyhandle
(subpaged from {{YouTube}})
 
w:c:strategywiki>Notmyhandle
(added example)
Line 11: Line 11:
|description=description of the video (optional)
|description=description of the video (optional)
}}</pre>
}}</pre>
==Example==
{{YouTube
|float=left
|video=wsCNoJagyL8
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|duration=9:42
|description=From Battery Park through Brooklyn Bridge Station.
}}
<pre>
{{YouTube
|float=left
|video=wsCNoJagyL8
|title=Nonlethal Walkthrough - Lebedev's Airfield (1/4)
|duration=9:42
|description=From Battery Park through Brooklyn Bridge Station.
}}
</pre>

Revision as of 20:10, 13 July 2009

This is a template for YouTube videos.

This template is used as follows:

{{YouTube
|float=left, right, or none (default: right)
|video=ID of the video (not its full URL)
|title=name of the video
|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)
}}

Example

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

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