Template:Soundcloud: Difference between revisions
No edit summary Tags: Mobile edit Mobile web edit |
Bongolium500 (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<includeonly>{{#evu: | <includeonly>{{#evu: | ||
{{{1|}}} | {{#if:{{#pos:{{{1|}}}|http}}{{#pos:{{{1|}}}|https}}{{#pos:{{{1|}}}|//}}|{{{1|}}}|https://{{{1|}}}}} | ||
|{{#expr:({{#replace:{{{width|100%}}}|%|}}/100)*230}}x{{#expr:({{#replace:{{{height|100%}}}|%|}}/100)*130}} | |{{#expr:({{#replace:{{{width|100%}}}|%|}}/100)*230}}x{{#expr:({{#replace:{{{height|100%}}}|%|}}/100)*130}} | ||
|{{{2|center}}} | |{{{2|center}}} | ||
|{{{caption|}}} | |{{{caption|}}} | ||
}}</includeonly><noinclude>{{documentation}}[[Category:Media templates]]</noinclude> | }}</includeonly><noinclude>{{documentation}}[[Category:Media templates]]</noinclude> |
Latest revision as of 16:04, 21 April 2024
{{soundcloud|url}}
For example, {{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls}} creates:
This respects infoboxes and will display side by side instead of being pushed beneath. There are also optional width and height parameter. {{soundcloud|width=50%|height=150%|https://soundcloud.com/big-finish/doctor-who-urgent-calls}} gives:
The second way creates a small embed to the side, in the same place an image would go. Just add "left" or "right" as the second parameter, depending on which side you want to snap to. To add a caption, add caption=whatever. Captions are particularly important because the smaller player size truncates the track title.
{{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls |right|caption=This is an example.}} is demonstrated to the right.