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

Материал из roboforum.ru Wiki
Перейти к: навигация, поиск
м
 
Строка 3: Строка 3:
  
 
== Пример ==
 
== Пример ==
<nowiki>{{#widget:YouTube
+
<nowiki>{{#widget:YouTube
 
|id=DWef69ItVrU
 
|id=DWef69ItVrU
 
|width=425
 
|width=425
Строка 11: Строка 11:
 
{{#widget:{{PAGENAME}}
 
{{#widget:{{PAGENAME}}
 
|id=DWef69ItVrU
 
|id=DWef69ItVrU
|width=400
+
|width=425
|height=255
+
|height=355
 
}}
 
}}
  
 
</noinclude>
 
</noinclude>
 
<includeonly><object width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"><param name="movie" value="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" wmode="transparent" width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"></embed></object></includeonly>
 
<includeonly><object width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"><param name="movie" value="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" wmode="transparent" width="<!--{$width|default:425|escape:'html'}-->" height="<!--{$height|default:355|escape:'html'}-->"></embed></object></includeonly>

Текущая версия на 09:19, 16 марта 2009

Этот виджет добавляет YouTube плеер.

Пример

{{#widget:YouTube
|id=DWef69ItVrU
|width=425
|height=355
}}