Widget:SpotifyPodcast: Difference between revisions

From The Portal Wiki
No edit summary
No edit summary
 
Line 7: Line 7:


<syntaxhighlight lang="html+handlebars">{{#widget:SpotifyPodcast|podcast=|width=}}</syntaxhighlight>
<syntaxhighlight lang="html+handlebars">{{#widget:SpotifyPodcast|podcast=|width=}}</syntaxhighlight>
</noinclude><includeonly><iframe src="https://open.spotify.com/embed-podcast/episode/<!--{$podcast|escape:'urlpathinfo'}-->" width="<!--{$width|escape:'html'|default:'100%'}-->" height="<!--{$height|escape:'html'|default:156}-->" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></includeonly>
</noinclude><includeonly><div>
<iframe src="https://open.spotify.com/embed-podcast/episode/<!--{$podcast|escape:'urlpathinfo'}-->" width="<!--{$width|escape:'html'|default:'100%'}-->" height="<!--{$height|escape:'html'|default:156}-->" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe>
</div></includeonly>

Latest revision as of 22:31, 27 March 2021

Usage

SpotifyURI.jpg

Embed Spotify podcasts on wiki pages. Use the code given by the Spotify URI from a podcast episode's share menu, without spotify:episode:.

Sample URI (Code in red): spotify:episode:1bMo4P2RJhvEtlAx96utmo

{{#widget:SpotifyPodcast|podcast=|width=}}