Template:SoundCloud
From Guild Wars 2 Wiki
Jump to navigationJump to search
Description[edit]
This template provides a SoundCloud player. It utilises Widget:SoundCloud.
Two ways to find out the id of a SoundCloud track:
- Use the button Share (might be hidden by an AdBlocker) and then Embed to extract the id from the embeded code
[..]api.soundcloud.com/tracks/<id>&[..]
(or for playlists[..]api.soundcloud.com/playlists/<id>&[..]
). Copy the embeded code into a text editor for a better overview. - Right-click, select Show source code and search for
content="soundcloud://sounds:<id>"
.
Usage[edit]
{{SoundCloud | id = | width = | height = }}
Parameters[edit]
- mode
- Optional. The mode the id applies to, either "tracks" (default) or "playlists".
- id
- Required. The id of the music to stream.
- width
- Optional. Width of the player box, in pixels, defaults to "600".
- height
- Optional. Height of the player box, in pixels, defaults to "166".
Example[edit]
{{SoundCloud|id=229773401}}
{{SoundCloud|mode=playlists|id=236909646|height=400}}