Extension:EmbedSpotify
![]() Release status: stableCategory:Stable extensions |
|
---|---|
Implementation | TagCategory:Tag extensions |
Description | Adds <spotify> tag to embed spotify player |
Author(s) | Nessun Kim (NessunKimtalk) |
Latest version | 1.0.3 |
MediaWiki | 1.40+Category:Extensions with manual MediaWiki version |
Database changes | No |
License | GNU General Public License 2.0 or later |
Download | Category:Extensions in Wikimedia version control README.mdE.md |
<spotify> |
|
Translate the EmbedSpotify extension if it is available at translatewiki.net |
The EmbedSpotify extension allows for embedding Spotify player.
Usage
Copy the embed code from the Spotify app. The code should be something like:
<iframe src="https://open.spotify.com/embed/album/6EmLwnyjJRVgNOmOUpVhzz" width="300" height="380" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
You need to copy the text between <iframe src="
and " width
. In the example, it is the album/6EmLwnyjJRVgNOmOUpVhzz
part. It can start with album/
, playlist/
, or artist/
depending on the type of the song list you embed.
To embed the player, paste the copied text between <spotify>
and </spotify>
.
So, <spotify>album/6EmLwnyjJRVgNOmOUpVhzz</spotify>
is the text you have to insert into your wiki page.
You can specify the width and height of the player in the tag's attributes such as <spotify width="300" height="200">album/6EmLwnyjJRVgNOmOUpVhzz</spotify>
. If not specified, 300 and 380 will be used for width and height respectively.
Installation
- Download and move the extracted
EmbedSpotify
folder to yourextensions/
directory.
Developers and code contributors should install the extension from Git instead, using:cd extensions/ git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EmbedSpotify
- Add the following code at the bottom of your LocalSettings.php file:
wfLoadExtension( 'EmbedSpotify' );
Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.
![]() | This extension is included in the following wiki farms/hosts and/or packages: This is not an authoritative list. Some wiki farms/hosts and/or packages may contain this extension even if they are not listed here. Always check with your wiki farms/hosts or bundle to confirm. |