Template:VideoEmbed: Difference between revisions

m
somehow in the Template space embedvideo-wrapper isn't used but in mainspace it is. baffling
m (somehow this was not necessary before but is necessary now)
m (somehow in the Template space embedvideo-wrapper isn't used but in mainspace it is. baffling)
Line 1: Line 1:
<includeonly>{{#if:{{{thumbcaption|}}}|<div class="thumb t{{{thumbalign|right}}}"><div class="thumbinner" style="width:{{#expr:{{{2}}}+2}}px;">}}<div style="position: relative; width: {{{2}}}px; height: {{{3}}}px; overflow: hidden; padding: 0 1px;">[[File:{{{1}}}|{{#expr:{{{3|{{#expr:{{{2}}}*{{{mw-assumed-height-over-width|0.5625}}}}}}}}/{{{mw-assumed-height-over-width|0.5625}}} round 0}}px{{#if:{{{gif|}}}|{{!}}gif}}{{#if:{{{poster|}}}|{{!}}poster=File:{{{poster}}}}}]]</div> {{#if:{{{thumbcaption|}}}|<div class="thumbcaption"><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{thumbcaption}}}</div></div></div>}}</includeonly>
<includeonly>{{#if:{{{3|}}}|{{#css:.videoembed-height{{{3}}}px, .videoembed-height{{{3}}}px .embedvideo-wrapper { height:{{{3}}}px; } }}}}{{#if:{{{thumbcaption|}}}|<div class="thumb t{{{thumbalign|right}}}"><div class="thumbinner" style="width:{{#expr:{{{2}}}+2}}px;">}}<div class="videoembed-height{{{3}}}px" style="position: relative; width: {{{2}}}px; height: {{{3}}}px; overflow: hidden; padding: 0 1px;">[[File:{{{1}}}|{{#expr:{{{3|{{#expr:{{{2}}}*{{{mw-assumed-height-over-width|0.5625}}}}}}}}/{{{mw-assumed-height-over-width|0.5625}}} round 0}}px{{#if:{{{gif|}}}|{{!}}gif}}{{#if:{{{poster|}}}|{{!}}poster=File:{{{poster}}}}}]]</div> {{#if:{{{thumbcaption|}}}|<div class="thumbcaption"><div class="magnify">[[:File:{{{1}}}| ]]</div>{{{thumbcaption}}}</div></div></div>}}</includeonly>
<noinclude>{{VideoEmbed/doc}}[[Category:Formatting templates]]</noinclude>
<noinclude>{{VideoEmbed/doc}}[[Category:Formatting templates]]</noinclude>
Automoderated users, autopatrol, patroller
2,706

edits