Extension:EmbedSpotify
Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Adds <spotify> tag to embed spotify player |
| Author(s) | Nessun Kim (NessunKimtalk) |
| Latest version | 1.0.3 |
| MediaWiki | 1.40+ |
| Database changes | No |
<spotify> |
|
| Licence | GNU General Public License 2.0 or later |
| Download | README.mdE.md |
| Translate the EmbedSpotify extension if it is available at translatewiki.net | |
The EmbedSpotify extension allows for embedding Spotify player.
Usage
[edit]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="https://open.spotify.com/embed/ 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
[edit]- Download and move the extracted
EmbedSpotifyfolder 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:Versionon your wiki to verify that the extension is successfully installed.
| This extension is included in the following wiki farms/hosts and/or packages: |
