Template:Spotify/doc: Difference between revisions
Bongolium500 (talk | contribs) No edit summary |
Bongolium500 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
The '''{{tlx|spotify}}''' template creates [https://spotify.com Spotify] embeds on articles. Usage is simple. [[Spotify]] URLs are typically split into | The '''{{tlx|spotify}}''' template creates [https://spotify.com Spotify] embeds on articles. Usage is simple. [[Spotify]] URLs are typically split into five types: | ||
* <tt>artist</tt> | * <tt>artist</tt> | ||
* <tt>album</tt> | * <tt>album</tt> | ||
* <tt>track</tt> | * <tt>track</tt> | ||
* <tt>playlist</tt> | * <tt>playlist</tt> | ||
* <tt>episode</tt> | |||
Each of these will be followed by a long string of gibberish. | Each of these will be followed by a long string of gibberish. | ||
Revision as of 23:17, 25 November 2023
The {{spotify}} template creates Spotify embeds on articles. Usage is simple. Spotify URLs are typically split into five types:
- artist
- album
- track
- playlist
- episode
Each of these will be followed by a long string of gibberish.
Let's consider Jubilee as our primary example here. You can easily extract the information you need from either the URI (spotify:album:2KavEgxLOcjbZq8OqoFiMD) or from a simple URL (https://open.spotify.com/album/2KavEgxLOcjbZq8OqoFiMD).
- {{spotify|album=5nuQd8ibwND43GAVP9FT0B}} will generate the Spotify embed seen on the right.
Simple right? The same exact logic applies to the three other URL types we mentioned. By default, {{Spotify}}
appears as an floating player aligned to the right side of the page.
They can also be aligned to the left side instead.
align=left produces such a left-aligned Spotify object.
- {{spotify|album=62Pk4ZZI82TmstwutgjPod|align=left}}
Spotify is not available in quite all countries, and not all users will have an account to listen with on the page directly.