Difference between revisions of "Widget:SpotifyPodcast"

no edit summary
Line 4: Line 4:
Embed Spotify podcasts on wiki pages. Use the code given by the Spotify URI from a podcast episode's share menu, without <code>spotify:</code> or <code>episode:</code>.
Embed Spotify podcasts on wiki pages. Use the code given by the Spotify URI from a podcast episode's share menu, without <code>spotify:</code> or <code>episode:</code>.


Sample URI: <code>spotify:episode:1bMo4P2RJhvEtlAx96utmo</code>
Sample URI: <code>spotify:episode:<span style="color: red">1bMo4P2RJhvEtlAx96utmo</span></code>


<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><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>