Template:Spotify/doc: Difference between revisions
Bongolium500 (talk | contribs) m (Updating Spotify embeds) |
Bongolium500 (talk | contribs) (the height field is now depracated due to Spotify's new embed style) |
||
Line 10: | Line 10: | ||
* {{tlx|spotify|album{{=}}5nuQd8ibwND43GAVP9FT0B}} will generate the Spotify embed seen on the right. | * {{tlx|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, {{tlc|Spotify}} appears as | Simple right? The same exact logic applies to the three other URL types we mentioned. By default, {{tlc|Spotify}} appears as an floating player aligned to the right side of the page. | ||
They can also be aligned to the left side instead. | |||
{{spotify|album=62Pk4ZZI82TmstwutgjPod|align=left}} | {{spotify|album=62Pk4ZZI82TmstwutgjPod|align=left}} | ||
<tt>'''align{{=}}left'''</tt> produces such a left-aligned Spotify object. | <tt>'''align{{=}}left'''</tt> produces such a left-aligned Spotify object. | ||
Spotify is not available in quite ''all'' countries, and not all users will have an account to listen with on the page directly. | |||
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> | <noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 11:51, 15 January 2023
The {{spotify}} template creates Spotify embeds on articles. Usage is simple. Spotify URLs are typically split into four types:
- artist
- album
- track
- playlist
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 is not available in quite all countries, and not all users will have an account to listen with on the page directly.