Template:Youtube: Difference between revisions
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
m (fixed lack of wordwrapping) |
m (Text replacement - "<br>" to "<br/>") |
||
Line 6: | Line 6: | ||
| height = {{#expr:{{{2|560}}}*0.5625 round 0}} | | height = {{#expr:{{{2|560}}}*0.5625 round 0}} | ||
}}{{#switch:{{{3|}}} | }}{{#switch:{{{3|}}} | ||
| left | right | center | {{Void}} = {{#if:{{{4|}}}|<br>{{{4}}}}} | | left | right | center | {{Void}} = {{#if:{{{4|}}}|<br/>{{{4}}}}} | ||
| #default = {{#if:{{{3|}}}|<br>{{{3}}}}} | | #default = {{#if:{{{3|}}}|<br/>{{{3}}}}} | ||
}} | }} | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
Line 15: | Line 15: | ||
==Usage== | ==Usage== | ||
To use this template type:<br> | To use this template type:<br/> | ||
{{Desc|Normal|Video Code|Video Size|Location|Caption|at{{=}}}} | {{Desc|Normal|Video Code|Video Size|Location|Caption|at{{=}}}} | ||
Latest revision as of 17:31, February 8, 2015
Purpose
This template is for conveniently displaying Youtube videos on an article.
Usage
To use this template type:
{{Youtube| Video Code | Video Size | Location | Caption | at= }}
Where:
- Video Code is the unique sequence of letters, numbers, and characters that point to the video. Either a single video code, which is eleven characters long, or a playlist code, which is eighteen characters long, may be used. If a playlist is used, it'll start at the first video.
- Video Size is the desired size of the video. Defaults to 420 pixels.
- Location is where to have the video. (i.e. right, left, or center.) Defaults to left if blank.
- Caption is an optional caption to describe the video.
- If location is neither left, right, nor center, then the it is assumed to be a caption and the video's location is set to "left".
- at is an optional named parameter for the start time, in seconds (or in the form ##m##s).