NOTE
This script will be removed if/when Fandom adds full support for SoundCloud players. If you use the provided template your players will automatically switch.
SoundcloudPlayer adds better support for SoundCloud players to Fandom. Unlike the default <soundcloud>
tag, players created through this script can be configured to appear as a simple play button.
Installation
Add the script to your wiki's ImportJS:
Create a {{SoundcloudPlayer}}
template:
Usage
The SoundcloudPlayer template supports several parameters to allow you to configure the player:
url
- The URL of the SoundCloud song;
width
- How wide the player should be;
height
- How tall the player should be;
color
- The color of the player button
Examples
Simple:
{{SoundcloudPlayer|url=https://soundcloud.com/producerminoffice/soundtemp-m-i-s-a}}
Setting the width and height:
{{SoundcloudPlayer|url=https://soundcloud.com/producerminoffice/soundtemp-m-i-s-a|width=20|height=20}}
Setting the button color:
{{SoundcloudPlayer|url=https://soundcloud.com/producerminoffice/soundtemp-m-i-s-a|color=#456202}}
Text above can be found here (edit)