Difference between revisions of "Widget:YouTubeChannel"

From Second Life Wiki
Jump to navigation Jump to search
(i wonder if this works...)
 
m (doc fix)
 
Line 10: Line 10:
Add aditional variables h for height and w for width. Full spec:
Add aditional variables h for height and w for width. Full spec:


<nowiki>{{#widget:YouTube|id=T1VCLPb_kNM|h=355|w=425}}</nowiki>
<nowiki>{{#widget:YouTubeChannel|id=65E62C75D7621CDB|h=355|w=425}}</nowiki>


== Copy to your site ==
== 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.
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.
</noinclude><includeonly><object width="<!--{$w|escape:'html'}-->" height="<!--{$h|escape:'html'}-->"><param name="movie" value="http://www.youtube.com/p/<!--{$id|escape:'urlpathinfo'}-->"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/p/<!--{$id|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" wmode="transparent" width="<!--{$w|escape:'html'}-->" height="<!--{$h|escape:'html'}-->"></embed></object></includeonly>
</noinclude><includeonly><object width="<!--{$w|escape:'html'}-->" height="<!--{$h|escape:'html'}-->"><param name="movie" value="http://www.youtube.com/p/<!--{$id|escape:'urlpathinfo'}-->"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/p/<!--{$id|escape:'urlpathinfo'}-->" type="application/x-shockwave-flash" wmode="transparent" width="<!--{$w|escape:'html'}-->" height="<!--{$h|escape:'html'}-->"></embed></object></includeonly>

Latest revision as of 10:01, 19 December 2008

This widget allows you to add YouTube video player to your wiki page.

It was created by Yaron Koren.

It is slightly modified by Zai Lynch in order tp display YouTube Channels instead of single videos and to give the chance to adjust the sice.

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org. Add aditional variables h for height and w for width. Full spec:

{{#widget:YouTubeChannel|id=65E62C75D7621CDB|h=355|w=425}}

Copy to your site

To use this widget on your site, just install MediaWiki Widgets extension and copy full source code of this page to your wiki as Widget:YouTubeChannel article.