This is the old (read-only) version of the site running Mediwiki 1.25

Difference between revisions of "Widget:YoutubeAudio"

From Scientolipedia
Jump to: navigation, search
 
Line 13: Line 13:
 
== 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 classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="<!--{$width|escape:'html'|default:'250'}-->" height="50" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="src" value="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->&amp;hl=en_US&amp;fs=1&amp;rel=0"/><param name="allowfullscreen" value="true"/><embed type="application/x-shockwave-flash" width="250" height="50" src="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></includeonly>
+
</noinclude><includeonly><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="<!--{$width|escape:'html'|default:'250'}-->" height="25" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true"/><param name="allowscriptaccess" value="always"/><param name="src" value="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->&amp;hl=en_US&amp;fs=1&amp;rel=0"/><param name="allowfullscreen" value="true"/><embed type="application/x-shockwave-flash" width="250" height="25" src="http://www.youtube.com/v/<!--{$id|escape:'urlpathinfo'}-->&amp;hl=en_US&amp;fs=1&amp;rel=0" allowscriptaccess="always" allowfullscreen="true"></embed></object></includeonly>

Latest revision as of 03:22, October 14, 2012

This widget shows an audio-only Youtube player to a wiki page.

It simply takes the video ID as the 'id' parameter, and optionally 'width' in px (default 250). Height is fixed as it is this that makes it an audio-only player.

You can see the widget in use here and here. These templates can be used in conjunction with this widget.

Created by Gerard Boyers

Using this widget

For information on how to use this widget, see widget description page on MediaWikiWidgets.org.

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:YoutubeAudio article.