Template:Musichead/doc: Difference between revisions
From Pizza Tower Wiki
Content deleted Content added
m Legroom moved page Template:SCheader/doc to Template:Musichead/doc without leaving a redirect |
No edit summary |
||
Line 1:
; Description
: This template creates a [[level]] article header with music player
: Template uses [[mw:Extension:TemplateStyles|Extension:TemplateStyles]], see [[Template:
; Syntax
: The code depends on embeded service:
* '''Bandcamp'''
:<pre>{{musichead|<image filename>|bandcamp|<track ID>|<album ID>}}</pre>
:Album ID is an optional parameter, by default template calls for ''[https://ronandecastel.bandcamp.com/album/pizza-tower-soundtrack Pizza Tower Soundtrack]''.
* '''SoundCloud'''
:<pre>{{musichead|<image filename>|soundcloud|<full track URL>}}</pre>
; Usage example
: Code
<pre>{{
{{musichead|PTWiki-leveliconsecret|soundcloud|https://soundcloud.com/clascyjitto/pizza-tower-secret-lockin}}</pre>
:Result:
{{
{{musichead|PTWiki-leveliconsecret|soundcloud|https://soundcloud.com/clascyjitto/pizza-tower-secret-lockin}}
<noinclude>[[Category:Template documentation]]</noinclude>
|
Latest revision as of 21:52, 1 February 2024
- Description
- This template creates a level article header with music player. It currently supports audio embeds from Bandcamp (with Template:BandcampPlayer) and SoundCloud (with Template:SoundcloudPlayer).
- Template uses Extension:TemplateStyles, see Template:Musichead/styles.css for styling.
- Syntax
- The code depends on embeded service:
- Bandcamp
{{musichead|<image filename>|bandcamp|<track ID>|<album ID>}}
- Album ID is an optional parameter, by default template calls for Pizza Tower Soundtrack.
- SoundCloud
{{musichead|<image filename>|soundcloud|<full track URL>}}
- Usage example
- Code – Bandcamp entry for John Gutter and SoundCloud entry for Secrets of The World:
{{musichead|PTWiki-levelicon1|bandcamp|967400588}} {{musichead|PTWiki-leveliconsecret|soundcloud|https://soundcloud.com/clascyjitto/pizza-tower-secret-lockin}}
- Result:
![](http://static.miraheze.org/pizzatowerwiki/e/e7/PTWiki-levelicon1.png)
![](http://static.miraheze.org/pizzatowerwiki/6/64/PTWiki-leveliconsecret.png)