Widget:YouTube — различия между версиями
Vooon (обсуждение | вклад) |
Vooon (обсуждение | вклад) |
||
Строка 3: | Строка 3: | ||
== Пример == | == Пример == | ||
− | <nowiki>{{#widget:YouTube|id=DWef69ItVrU}}</nowiki> | + | <nowiki>{{#widget:YouTube |
+ | |id=DWef69ItVrU | ||
+ | |width=425 | ||
+ | |height=355 | ||
+ | }}</nowiki> | ||
− | {{#widget:{{PAGENAME}}|id=DWef69ItVrU}} | + | {{#widget:{{PAGENAME}} |
+ | |id=DWef69ItVrU | ||
+ | |width=400 | ||
+ | |height=255 | ||
+ | }} | ||
</noinclude> | </noinclude> | ||
− | <includeonly><object width="425" height="355"><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="425" height="355"></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:18, 16 марта 2009
Этот виджет добавляет YouTube плеер.
Пример
{{#widget:YouTube |id=DWef69ItVrU |width=425 |height=355 }}