This wiki is still in active development, many areas of the site are unstable or broken.

In the meantime, consider adding content to pages you like!

Template:Spotify/doc: Difference between revisions

From NBITTRPG Wiki
Created page with "This template embeds a Spotify playlist. Made with the help of https://www.mediawiki.org/wiki/Extension:EmbedSpotify. == Usage == The proper use of this template is to define it by its type, then putting the ID after. The types permitted are '''album''', '''artist''', '''track''', and '''playlist'''. <syntaxhighlight lang="xml+smarty" copy> {{Spotify|type|id}} </syntaxhighlight> The following is an example of a Spotify embed of an album. <syntaxhighlight lang="xml+smarty..."
 
mNo edit summary
Line 1: Line 1:
This template embeds a Spotify playlist. Made with the help of https://www.mediawiki.org/wiki/Extension:EmbedSpotify.
This template embeds a Spotify playlist. Made with the help of https://www.mediawiki.org/wiki/Extension:EmbedSpotify.
== Usage ==
== Usage ==
The proper use of this template is to define it by its type, then putting the ID after. The types permitted are '''album''', '''artist''', '''track''', and '''playlist'''.
The proper use of this template is to define it by its type, then putting the ID after. The types permitted are '''album''', '''artist''', and '''track'''.
<syntaxhighlight lang="xml+smarty" copy>
<syntaxhighlight lang="xml+smarty" copy>
{{Spotify|type|id}}
{{Spotify|type|id}}
Line 10: Line 10:
</syntaxhighlight>
</syntaxhighlight>
== Example ==
== Example ==
Album
Album {{Spotify|album|5ganODBC3oQquPyGiNv9bt}}
{{Spotify|album|5ganODBC3oQquPyGiNv9bt}}
Artist {{Spotify|artist|53e9n1LucuH3guikmtv180}}
Artist
Track {{Spotify|track|5dptcPc81FCiyCPsNvl0qu}}
{{Spotify|artist|53e9n1LucuH3guikmtv180}}
== See also ==
Track
For playlist support, use the <nowiki><spotify></nowiki> tags and format it as such:
{{Spotify|track|5dptcPc81FCiyCPsNvl0qu}}
<syntaxhighlight lang="xml+smarty" copy>
Playlist
<spotify>playlist/id</spotify>
{{Spotify|playlist|5AeJTak0gaQZ6XDrlk0Cxu}}
</syntaxhighlight>
<includeonly>[[Category:Templates]]</includeonly>
<includeonly>[[Category:Templates]]</includeonly>

Revision as of 06:50, 27 October 2026

This template embeds a Spotify playlist. Made with the help of https://www.mediawiki.org/wiki/Extension:EmbedSpotify.

Usage

The proper use of this template is to define it by its type, then putting the ID after. The types permitted are album, artist, and track.

{{Spotify|type|id}}

The following is an example of a Spotify embed of an album.

{{Spotify|album|5ganODBC3oQquPyGiNv9bt}}

Example

Album


Artist


Track


See also

For playlist support, use the <spotify> tags and format it as such:

<spotify>playlist/id</spotify>