Difference between revisions of "Template:YouTube"
From BroaDWcast
Jump to navigationJump to searchJohn Lavalie (talk | contribs) |
John Lavalie (talk | contribs) |
||
| Line 1: | Line 1: | ||
| − | <div class="NoPrint" style="float:{{{float|left}}};">{{#widget:YouTube|id={{{id}}}|width={{{width| | + | <div class="NoPrint" style="float:{{{float|left}}};"> |
| + | {{#widget:YouTube|id={{{id}}} | ||
| + | |||
| + | |width= | ||
| + | {{#ifexpr: | ||
| + | {{{width}}} < 0 and {{{height}}} > 0 | ||
| + | | {{#expr: {{{height}}} * 1.2 }} | ||
| + | | {{{width}}} | ||
| + | }} | ||
| + | |||
| + | |height= | ||
| + | {{#ifexpr: | ||
| + | {{{height}}} < 0 and {{{width}}} > 0 | ||
| + | | {{#expr: {{{width}}} * .833 }} | ||
| + | | {{{height}}} | ||
| + | }} | ||
| + | |||
| + | }}</div> | ||