Template:Spotify: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(adding more height functionality) Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 1: | Line 1: | ||
<includeonly><div class="spotify-thumb" style="{{#ifeq:{{{align|}}}|left|float:left;clear:left;|}}" {{#switch:{{{height|}}}|full|full height|380=id="full-height"|}}> | <includeonly><div class="spotify-thumb" style="{{#ifeq:{{{align|}}}|left|float:left;clear:left;|}}" {{#switch:{{{height|}}}|full|full height|380=id="full-height"|300=id="height-300"|350=id="height-350"}}> | ||
{{#tag:spotify||uri="{{#if:{{{album|}}}|spotify:album:{{{album}}}|{{#if:{{{track|}}}|spotify:track:{{{track}}}|spotify:album:{{{1}}}}}}}"|height="{{#if:{{{height|}}}|{{#switch:{{{height|}}}|full|full height=380|#default={{{height}}}}}|200}}"}} | {{#tag:spotify||uri="{{#if:{{{album|}}}|spotify:album:{{{album}}}|{{#if:{{{track|}}}|spotify:track:{{{track}}}|spotify:album:{{{1}}}}}}}"|height="{{#if:{{{height|}}}|{{#switch:{{{height|}}}|full|full height=380|#default={{{height}}}}}|200}}"}} | ||
</div></includeonly><noinclude>[[Category:Template sandbox|Spotify thumb]]</noinclude> | </div></includeonly><noinclude>[[Category:Template sandbox|Spotify thumb]]</noinclude> |