Difference between revisions of "Хев:YouTube"

Content deleted Content added
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1:
<includeonly>{{#switchif:{{{align1|right}}}
|{{#ev:youtube
| left = <div class="thumb tleft">
{{#if: | {{{1|}}}
| right = <div class="thumb tright">
| {{#if:{{{width|}}} | {{{width|}}} | 300 }}
| center = <div class="thumb tcenter">
| {{#if:{{{align|}}} | {{{align|}}} | right }}
| #default = <div class="thumb tright">
| {{{2|}}}
| {{#if:{{{height|}}} | urlargs=height="{{{height|169}}}" }}
}}
|'''Error:''' YouTube video ID missing.
}}</includeonly>
<includeonly><div class="thumbinner" style="width:{{#expr: {{{width|300}}} + 2 }}px; background: #fff; padding: 0; border: 1px solid #c8ccd1; display: inline-block;">
{{#if:{{{1|}}}
|<div style="width:{{{width|300}}}px; height:{{{height|169}}}px; overflow: hidden;">
<iframe
width="{{{width|300}}}"
height="{{{height|169}}}"
src="https://www.youtube.com/embed/{{{1}}}"
frameborder="{{{border|0}}}"
allowfullscreen
style="display: block; margin: 0; padding: 0;"
></iframe>
</div>
|'''Ошибка!'''<br>''Не указан ID видео.''
}}
{{#if:{{{2|}}}|<div class="thumbcaption">{{{2}}}</div>}}
</div></div></includeonly>