Difference between revisions of "Template:YouTube"

From BroaDWcast
Jump to navigationJump to search
Line 1: Line 1:
<div class="NoPrint" style="float:{{{float|left}}};">{{#widget:YouTube|id={{{id}}}|width={{{width|425}}}|height={{{height|355}}}}}</div>
+
<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>

Revision as of 23:48, 21 April 2012