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: Line 1:
<includeonly>{{#switch:{{{align|right}}}
<includeonly>{{#if:{{{1|}}}
|{{#ev:youtube
| left = <div class="thumb tleft">
| {{{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}}} }}
}}
|'''Error:''' YouTube video ID missing.
}}</includeonly>
}}</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>

Latest revision as of 15:14, 1 Грудня 2025