Difference between revisions of "Template:YouTube"

From BroaDWcast
Jump to navigationJump to search
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="NoPrint" style="float:{{{float|left}}};">
+
<noinclude><nowiki>
{{#widget:YouTube|id={{{id}}}
+
{{YouTube|float=|id=|width=|height=}}</nowiki>
  
|width=
+
'''defaults:'''
      {{#ifexpr:  
 
        {{{width}}} < 0 and {{{height}}} > 0 
 
        | {{#expr: {{{height}}} * 1.2 }}
 
        | {{{width}}}
 
      }}
 
  
|height=
+
float: left<br />
      {{#ifexpr:  
+
width: 260<br />
          {{{height}}} < 0 and {{{width}}} >
+
height: 220<br />
          | {{#expr: {{{width}}} * .833 }}
+
</noinclude>
          | {{{height}}}
 
      }}
 
  
}}</div>
+
<includeonly>
 +
<span class="NoPrint" style="float:{{{float|left}}}; padding:10px 10px 10px 10px;">{{#widget:YouTube|id={{{id}}}|width={{{width|260}}}|height={{{height|220}}}}}</span>
 +
</includeonly>

Latest revision as of 18:51, 13 April 2019

{{YouTube|float=|id=|width=|height=}}

defaults:

float: left
width: 260
height: 220