Template:YouTube

Template page
Revision as of 20:15, 6 July 2011 by w:c:strategywiki>Prod (fix)

This page has been transcluded from Template:YouTube/Documentation.


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 center (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

http://media.strategywiki.org/images/9/9c/YouTube_logo.png
{{#evp:youtube|wsCNoJagyL8|From Battery Park through Brooklyn Bridge Station.|right|180}}
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.
}}

Example 2: use in a sidebar

Page Template:Sidebar/styles.css has no content.

Sidebar title
Lorem ipsum.
{{Sidebar
|width=300px
|title=Sidebar title
|contents={{YouTube|video=-F_rnd-DKIg|title=YouTube title|float=center}}
Lorem ipsum.}}