Template:Spotify/doc: Difference between revisions
mNo edit summary |
Bongolium500 (talk | contribs) m (Updating Spotify embeds) |
||
Line 7: | Line 7: | ||
Let's consider ''[[Jubilee (audio story)|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). | Let's consider ''[[Jubilee (audio story)|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= | {{spotify|album=5nuQd8ibwND43GAVP9FT0B}} | ||
* {{tlx|spotify|album{{=}} | * {{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 a small thumbnail-sized object, aligned to the right side of the page. | Simple right? The same exact logic applies to the three other URL types we mentioned. By default, {{tlc|Spotify}} appears as a small thumbnail-sized object, aligned to the right side of the page. | ||
Spotify embeds can not only have different heights, though, but can also align to the left side instead. | Spotify embeds can not only have different heights, though, but can also align to the left side instead. | ||
{{spotify|album= | {{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|album= | {{spotify|album=6Ze4coxArPzZ3jixIjRIZR|align=left|height=280}} | ||
{{spotify|album= | {{spotify|album=6vq69dSPv9AMFVvCRaFdjx|height=350}} | ||
{{spotify|album= | {{spotify|album=1HCflmgkZM82JbR7Zkgncl|align=left}} | ||
:To achieve a longer (yet thinner) object, with greater control to it, use one of the following <tt>'''height'''</tt> options: | :To achieve a longer (yet thinner) object, with greater control to it, use one of the following <tt>'''height'''</tt> options: |
Revision as of 17:57, 2 January 2022
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 a small thumbnail-sized object, aligned to the right side of the page.
Spotify embeds can not only have different heights, though, but can also align to the left side instead.
align=left produces such a left-aligned Spotify object.
- To achieve a longer (yet thinner) object, with greater control to it, use one of the following height options:
- 280, 350 or 380.
- 280 is, of course, preferable, as it takes up less space on the page. Take caution in using these larger Spotify embeds, not to take away too much from space for content. Spotify is not available in quite all countries, and not all users will have an account to listen with on the page directly.