Template:Soundcloud/doc: Difference between revisions
(Updating documentation with new features) Tag: sourceedit |
No edit summary Tag: sourceedit |
||
Line 11: | Line 11: | ||
{{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls|width=50%}} | {{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls|width=50%}} | ||
The second way creates a small embed to the side, in the same place an image would go. Just add | 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 <tt>caption=whatever</tt>. Captions are particularly important because the smaller player size truncates the track title. | ||
{{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls| | {{soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls|right|caption=This is an example.}} | ||
{{tlx|soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls{{nbsp}}| | {{tlx|soundcloud|https://soundcloud.com/big-finish/doctor-who-urgent-calls{{nbsp}}|right|caption{{=}}This is an example.}} is demonstrated to the right. | ||
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> | <noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude> |
Revision as of 21:06, 13 October 2016
The {{Soundcloud}} template creates SoundCloud embeds on articles. There are two ways to use it. The first creates an embed that will take up the full width of the article:
{{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 is also an optional width parameter. {{soundcloud|width=50%|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.