Widget:SoundCloud: Difference between revisions

From Hackers & Designers
imported>Admin
No edit summary
imported>Admin
No edit summary
Line 1: Line 1:
<noinclude>__NOTOC__
<noinclude>
This widget allows you to embed '''[http://www.soundcloud.com/ SoundCloud]''' on your wiki page.
This widget is used to embed a SoundCloud audio.
 
Created by [http://www.mediawikiwidgets.org/User:Sergey_Chernyshev Sergey Chernyshev]
 
== Using this widget ==
For information on how to use this widget, see [http://www.mediawikiwidgets.org/SoundCloud widget description page on MediaWikiWidgets.org].


== Copy to your site ==
=== Parameters ===
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 : The SoundCloud ID of the audio to play. This can be found in the URL on the Embed tab when sharing a Soundcloud track)
</noinclude><includeonly><object height="81" width="<!--{$width|default:'100%'|escape:'html'}-->"><param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<!--{$id|escape:'html'}-->"></param> <param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<!--{$id|escape:'html'}-->" type="application/x-shockwave-flash" width="<!--{$width|default:'100%'|escape:'html'}-->"></embed></object></includeonly>
; height / width : Height and width of the map pane, in pixels. Default is 81 pixels tall, 50% width.


<noinclude>
[[Category:Widgets]]
[[Category:Widgets]]
</noinclude>
</noinclude><includeonly><object height="81" width="<!--{$width|default:'50%'|escape:'html'}-->"><param name="movie" value="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<!--{$id|escape:'html'|validate:int}-->"></param> <param name="allowscriptaccess" value="always"></param><embed allowscriptaccess="always" height="81" src="http://player.soundcloud.com/player.swf?url=http%3A%2F%2Fapi.soundcloud.com%2Ftracks%2F<!--{$id|escape:'html'|validate:int}-->" type="application/x-shockwave-flash" width="<!--{$width|default:'50%'|escape:'html'}-->"></embed></object></includeonly>

Revision as of 16:31, 9 September 2015

This widget is used to embed a SoundCloud audio.

Parameters

id
The SoundCloud ID of the audio to play. This can be found in the URL on the Embed tab when sharing a Soundcloud track)
height / width
Height and width of the map pane, in pixels. Default is 81 pixels tall, 50% width.