Modèle:Bandcamp
Used for embedding Bandcamp tracks. Requires an embed link for the track rather than a normal link. To prevent mixed content errors, links must use https. This template uses JavaScript found on Mediawiki:Bandcamp.js.
Usage
| Parameter | Data type | Optional | Default | Description |
|---|---|---|---|---|
| link | URL | Embed link for a Bandcamp track. Must use https. | ||
| width | CSS unit | Yes | 100% | Width of the embedded player. |
| height | CSS unit | Yes | 45px | Height of the embedded player. |
| text | Wikitext | Yes | [{{{link|}}} Listen on Bandcamp] | Text to display if the embedded player has not loaded for some reason. |
Example
{{Bandcamp|link=https://bandcamp.com/EmbeddedPlayer/album=408983280/size=small/bgcol=000/linkcol=0687f5/artwork=none/track=3630660485/transparent=true/}}
Produces: