SoundCloud

From No Subject - Encyclopedia of Psychoanalysis
Revision as of 11:55, 27 December 2020 by Riot Hero (talk | contribs) (Created page with "{{Widget |description=Allows you to add SoundCloud tracks. |author=Sergey Chernyshev, Ioannis Protonotarios, |provider=SoundCloud |providerurl=http://www.soundcloud.com/ |stat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
SoundCloud widget
Description:Widget Description::Allows you to add SoundCloud tracks.
Author:{{#arraymap:Sergey Chernyshev, Ioannis Protonotarios,|,|@@@|@@@}}
Provider:SoundCloud [[Widget Provider::SoundCloud|]]
Code:Widget Code Page::Widget:SoundCloud
Status:active
Updated:{{#show: Widget:SoundCloud |?Modification date#-F[F j, Y] }} {{#info: If you use code on your wiki which is older than this date you may want to update since your widget may be insecure or broken. |note }}
Security:Widget Security::unknown
Template:AddThis
Inv-Icon tools.png

To copy this widget to your wiki, cut and paste the entire source of the SoundCloud widget code page into a page called Widget:SoundCloud on your wiki.

If you don't have the Widget extension set up on your wiki, go to its description page on MediaWiki.org and follow the installation instructions.


{{#set:

Widget Name=SoundCloud
|Widget Added On={{#show: SoundCloud |?Creation date }}
|Widget Updated On={{#show: Widget:SoundCloud |?Modification date#ISO }}
|Widget Status=active|+sep=,
|Meta element keywords=MediaWiki, Widget, Widgets, SoundCloud|+sep=,
|Meta element description=This site is hosting a public collection of MediaWiki Widgets to be used with the Widgets extension. This page is about the SoundCloud widget.

}}

This widget allows you to add SoundCloud tracks to your wiki pages.

To insert this widget, use the following minimum code:

{{#widget:SoundCloud
 |id=26963349
}}

Full code:

{{#widget:SoundCloud
 |id= 
 |width= 
 |height= 
 |color= 
 |visual= 
}}

Parameters

  • id - numeric ID of the track (required)
  • width - width of the widget (default = 100%, use a plain number for pixels)
  • height - height of the widget (default = 160)
  • color - player theme color (default = ff5500, use hex values without #)
  • visual - whether to embed classic or visual player (true/false, default = false = classic player)

Notes

  • To get numeric ID of a track when in SoundCloud click Share > Embed and look inside the embed code for something like "...api.soundcloud.com/tracks/26963349&...". The number "26963349" in this example is the track ID.
  • Parameter color has no effect in visual player.
  • Visual player looks better in a high height value. SoundCloud suggests 300, 450 and 600 as heights.
  • You can further customize this widget in your wiki easily and add more boolean parameters if you wish for auto_play, hide_related, show_comments, show_user and show_reposts. Just look in the widget's code and it's pretty much self-explanatory.

Sample results

Classic

{{#widget:SoundCloud
 |id=26963349
 |color=00FF00
}}

Visual

{{#widget:SoundCloud
 |id=26963349
 |visual=true
 |height=450
}}

Template:Comments