Template:MusicEmbed

From Pizza Tower Wiki

How do I use this thing?

This is documentation about a Template. Portions of this template may not display properly without certain values provided.

Edit this documentation | About the Documentation template

Description
This template inserts a music track, rendered from a locally uploaded audio file or from an external site embed - Bandcamp (with Template:BandcampPlayer), SoundCloud (with Template:SoundcloudPlayer) or YouTube (with Extension:YouTube).
Template uses Extension:TemplateStyles, see Template:MusicEmbed/styles.css for styling.
Syntax
The code depends on source of the track:
  • Locally uploaded file
{{MusicEmbed|file = <file name>|cover = <file name>}}
cover is an optional parameter; if not provided a placeholder will be used
  • Bandcamp
{{MusicEmbed|bc = <track ID>|album = <album ID>|cover = <file name>}}
album and cover are optional parameters; by default template calls for Pizza Tower Soundtrack album and uses cover artwork provided by Bandcamp.
  • SoundCloud
{{MusicEmbed|sc = <URL>|cover = <file name>}}
cover is an optional parameter; if not provided a placeholder will be used
  • YouTube
{{MusicEmbed|yt = <video ID>|cover = <file name>}}
cover is an optional parameter; if not provided a placeholder will be used
Usage example
Code:
; Local file, no cover provided
{{MusicEmbed|file=PT-music_-_Entrance_Secret_V1.mp3}}

; Bandcamp, no cover provided
{{MusicEmbed|bc=967400588}}

; Bandcamp, with cover
{{MusicEmbed|bc=967400588|cover=MusicArtwork-Secret Lockin'.jpg}}

; SoundCloud, with cover
{{MusicEmbed|sc=https://soundcloud.com/clascyjitto/pizza-tower-secret-lockin|cover=MusicArtwork-Secret Lockin'.jpg}}

; YouTube, no cover provided
{{MusicEmbed|yt=qxrHnXTmll4}}
Result:
Local file, no cover provided
Bandcamp, no cover provided
Bandcamp, with cover
SoundCloud, with cover
YouTube, no cover provided