18,577
edits
(changed default width, height, AR) |
m (Text replacement - "<br>" to "<br/>") |
||
(4 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{| | <includeonly>{{Box|{{#switch:{{{3|}}}|right=right|center=center|#default=left}}|width={{{2|560}}}px|style=margin-top: 0px; | ||
| {{#widget:YouTube | |||
|{{#widget:YouTube|{{#ifexpr:{{#len:{{{1}}}}}=11|id={{{1}}}|playlist={{{1}}}}}|at={{{at|0}}}|width={{{2|560}}}|height={{#expr:{{{2|560}}}*0.5625 round 0}}}}{{#switch:{{{3|}}} | | {{#ifexpr:{{#len:{{{1}}}}}=11|id={{{1}}}|playlist={{{1}}}}} | ||
| at = {{{at|0}}} | |||
| width = {{{2|560}}} | |||
</includeonly><noinclude> | | height = {{#expr:{{{2|560}}}*0.5625 round 0}} | ||
}}{{#switch:{{{3|}}} | |||
| left | right | center | {{Void}} = {{#if:{{{4|}}}|<br/>{{{4}}}}} | |||
| #default = {{#if:{{{3|}}}|<br/>{{{3}}}}} | |||
}} | |||
}}</includeonly><noinclude> | |||
{{Clear}} | {{Clear}} | ||
==Purpose== | ==Purpose== | ||
Line 10: | 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{{=}}}} | ||
Line 18: | Line 23: | ||
*'''''Location''''' is where to have the video. (i.e. right, left, or center.) Defaults to left if blank. | *'''''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. | *'''''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). | *'''''at''''' is an optional named parameter for the start time, in seconds (or in the form ##m##s). | ||
{{Cat|Formatting Templates}} | {{Cat|Formatting Templates}} | ||
</noinclude> | </noinclude> |