The navbox below links to Templates for easy navigation and for organization of all current templates.
Please note that this box below has the <noinclude> tag. This means that when you insert the template you are using above ^ to an article, this box below will NOT be inserted.
Template documentation
|
|---|
| Note: portions of the template sample may not be visible without values provided. |
| View or edit this documentation. (About template documentation) |
| Editors can experiment in this template's sandbox and test case pages. |
Description
Displays previews of Spotify links using EmbedVideo.
This is a smaller version, usually used for releases with only one song. For multiple songs such as albums or playlists, check out Template:Spotify.
Dependencies
This template requires Template:Spotify in order to work.
Parameters
| Parameter Name | Info |
|---|---|
| {{{1}}} | The first positional parameter is the type of the spotify embed, that can be album, track, artist or playlist. You can find the type of embed in the spotify url. (Required) |
| {{{2}}} | The second positional parameter is the id of the album/track/artist/playlist, which is a unique identifier composed of numbers and letters that can be found at the end of the spotify url. (Required) |
| {{{width}}} | A custom width can be set with this parameter. Default is 320.* (Optional) |
| {{{height}}} | A custom height can be set with this parameter. Default is 80.* (Optional) |
| {{{align}}} | Alignment can be set with this parameter, that can be left, center, right or inline. Default is left. (Optional) |
*Notice: Custom sizes are to be set with numbers only, without the "px".
Examples
Types
Releases
Link: https://open.spotify.com/album/0BTiFYoYsuKefaM1HIQqCC
Syntax:{{Spotify Mini|album|0BTiFYoYsuKefaM1HIQqCC}}
Example:
Tracks
Link: https://open.spotify.com/track/2UJqnLNlUSQ2ZRBQuEFZml
Syntax:{{Spotify Mini|track|2UJqnLNlUSQ2ZRBQuEFZml}}
Example:
Artists
Link: https://open.spotify.com/artist/0cdpFI2dZC34peIkjI1rLs
Syntax:{{Spotify Mini|artist|0cdpFI2dZC34peIkjI1rLs}}
Example:
Playlists
Link: https://open.spotify.com/playlist/37i9dQZF1E8LwoVut07Wmg
Syntax:{{Spotify Mini|playlist|37i9dQZF1E8LwoVut07Wmg}}
Example:
Custom Size
Custom size can be set in any of the above by passing width and height to the template.
Syntax:{{Spotify Mini|album|0BTiFYoYsuKefaM1HIQqCC|width=400|height=160}}
Example:
Alignment
Alignment can be set in any of the above with the align parameter.
Syntax:{{Spotify Mini|track|2UJqnLNlUSQ2ZRBQuEFZml|align=center}}
Example: