Widget:YouTube — различия между версиями

Материал из rock63.ru
Перейти к: навигация, поиск
Строка 1: Строка 1:
 
<noinclude>
 
<noinclude>
This widget allows you to add YouTube video player to your wiki page.
+
Виджет для вставки видео с YouTube на страницу. Автор виджета: [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
  
It was created by [http://www.mediawikiwidgets.org/User:Yaron_Koren Yaron Koren].
+
Для вставки используйте следущий код:
 +
== Использование ==
 +
=== Одно видео ===
 +
<nowiki>{{#widget:YouTube|id=Ukytqe9pwDM}}</nowiki>
  
== Using this widget ==
+
=== Плейлист ===
For information on how to use this widget, see [http://www.mediawikiwidgets.org/YouTube widget description page on MediaWikiWidgets.org].
+
<nowiki>{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}</nowiki>
  
== Copy to your site ==
+
== Параметры ==
To use this widget on your site, just install [http://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as '''{{FULLPAGENAME}}''' article.
+
* '''id''' - video id (from the URL)
 +
* '''playlist''' - playlist name (starts with PL) - first clip is played ('''id''' is ignored)
 +
* '''height''' and '''width''' define view dimensions, 350x267 is default
 
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'350'}-->" height="<!--{$height|escape:'html'|default:267}-->" src="http://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></includeonly>
 
</noinclude><includeonly><iframe width="<!--{$width|escape:'html'|default:'350'}-->" height="<!--{$height|escape:'html'|default:267}-->" src="http://www.youtube.com/embed/<!--{$id|escape:'urlpathinfo'}-->" frameborder="0" allowfullscreen></iframe></includeonly>

Версия 11:29, 19 декабря 2013

Виджет для вставки видео с YouTube на страницу. Автор виджета: Yaron Koren.

Для вставки используйте следущий код:

Использование

Одно видео

{{#widget:YouTube|id=Ukytqe9pwDM}}

Плейлист

{{#widget:YouTube|playlist=PL6FD8256CD24CFF1F}}

Параметры

  • id - video id (from the URL)
  • playlist - playlist name (starts with PL) - first clip is played (id is ignored)
  • height and width define view dimensions, 350x267 is default