16 343
правки
Строка 1: | Строка 1: | ||
<includeonly>{{#ev:youtube|{{{link}}}|{{#if:{{{width|}}}| {{{width}}}| }}|{{#if:{{{align|}}}| {{{align}}}| right}}|{{{text}}}|frame}}</includeonly><noinclude> | <includeonly>{{#ev:youtube|{{{link}}}|{{#if:{{{width|}}}| {{{width}}}| }}|{{#if:{{{align|}}}| {{{align}}}| right}}|{{{text}}}|frame}}</includeonly><noinclude> | ||
<h2> Описание </h2> | <h2> Описание </h2> | ||
Вставляет блок с YouTube-видео и выравнивает его по правому краю. Использует плагин [https://www.mediawiki.org/wiki/Extension:EmbedVideo EmbedVideo]. | |||
<h2> Использование </h2> | |||
<pre> | |||
{{YouTube | {{YouTube | ||
| link= https://youtu.be/7U-1rruSQGM | | link= https://youtu.be/7U-1rruSQGM | ||
| text= Видео | | text= Видео | ||
}} | }}</pre> | ||
<pre> | |||
{{YouTube | {{YouTube | ||
| link= https://youtu.be/7U-1rruSQGM | | link= https://youtu.be/7U-1rruSQGM | ||
| text= Видео шириной | | text= Видео шириной 250px | ||
| width= 250 | | width= 250 | ||
}}</pre> | |||
<pre> | |||
{{YouTube | |||
| link= https://youtu.be/7U-1rruSQGM | |||
| text= Видео по центру с шириной 600px | |||
| align=center | |||
| width=600 | |||
}} | }} | ||
</pre> | |||
<h2> | |||
<h2> Примеры </h2> | |||
{{YouTube | {{YouTube | ||
| link= https://youtu.be/7U-1rruSQGM | | link= https://youtu.be/7U-1rruSQGM | ||
| text= Видео | | text= Видео | ||
}} | }} | ||
{{YouTube | {{YouTube | ||
| link= https://youtu.be/7U-1rruSQGM | | link= https://youtu.be/7U-1rruSQGM | ||
| text= Видео шириной 250 px | | text= Видео шириной 250 px | ||
| width= 250 | | width= 250 | ||
}} | }} | ||
{{YouTube | |||
| link= https://youtu.be/7U-1rruSQGM | |||
| text= Видео по центру | |||
| align=center | |||
| width=600 | |||
}} | |||
</noinclude> |