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 |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
This template embeds a Spotify | This template embeds a Spotify element. 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 | 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> | ||
<spotify>playlist/id</spotify> | |||
</syntaxhighlight> | |||
* [[:Template:Spotify small]] | |||
<includeonly>[[Category:Templates]]</includeonly> | <includeonly>[[Category:Templates]]</includeonly> | ||
Latest revision as of 06:58, 27 October 2026
This template embeds a Spotify element. Made with the help of https://www.mediawiki.org/wiki/Extension:EmbedSpotify.
Usage
[edit source]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
[edit source]Album
Artist
Track
See also
[edit source]For playlist support, use the <spotify> tags and format it as such:
<spotify>playlist/id</spotify>
