Widget:SC: Difference between revisions

From WildWords
Line 4: Line 4:


==Usage==
==Usage==
The widget code looks like this:
<p><nowiki>{{#widget:SC|link=YOUR_URL|width=YOUR_WIDTH}}</nowiki></p>
<p><nowiki>{{#widget:SC|link=YOUR_URL|width=YOUR_WIDTH}}</nowiki></p>
<p>Where:</p>
<p>Where:</p>
<p>link -- URL of the audiofile you can find on SoundCloud</p>
<p>link -- URL of the audiofile you can find on SoundCloud</p>
<p>width -- you can adjust the width of the mini player (for example when the audio file name is too long). This parameter is optional, default value is 175px. Please specify the width without 'px', just the number.</p>
<p>width -- you can adjust the width of the mini player (for example when the audio file name is too long). This parameter is optional, default value is 175px. Please specify the width without 'px', just the number.</p>
<p></p>
</noinclude>
</noinclude>



Revision as of 16:37, 5 February 2014

Description

This widget allows you to embed audio hosted on SoundCloud. It will create a mini player with "Play" button and name of the audio you are embedding. You should pass one required parameter to the widget: absolute URL of the audio (which is easy to obtain from SoundCloud "Share' options). Also, if needed, you can adjust width of the player by passing second parameter.

Usage

The widget code looks like this:

{{#widget:SC|link=YOUR_URL|width=YOUR_WIDTH}}

Where:

link -- URL of the audiofile you can find on SoundCloud

width -- you can adjust the width of the mini player (for example when the audio file name is too long). This parameter is optional, default value is 175px. Please specify the width without 'px', just the number.