Template:Music infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "| " to "| ") |
m (Text replacement - ";"" to """) |
||
Line 4: | Line 4: | ||
{{!}}- | {{!}}- | ||
{{#if:{{{video|}}}| | {{#if:{{{video|}}}| | ||
! style="background:{{{imageBG|#f0f0f0}}}; text-align:center | ! style="background:{{{imageBG|#f0f0f0}}}; text-align:center" colspan="2" {{!}} {{{video|}}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{yt|}}}| | {{#if:{{{yt|}}}| | ||
! style="background:{{{imageBG|#f0f0f0}}}; text-align:center | ! style="background:{{{imageBG|#f0f0f0}}}; text-align:center" colspan="2" {{!}} {{#widget:YouTube|id={{{yt|}}}|width=300}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{vimeo|}}}| | {{#if:{{{vimeo|}}}| | ||
! style="background:{{{imageBG|#f0f0f0}}}; text-align:center | ! style="background:{{{imageBG|#f0f0f0}}}; text-align:center" colspan="2" {{!}} {{#widget:Vimeo|id={{{vimeo|}}}|width=300}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
Line 54: | Line 54: | ||
{{!}}- | {{!}}- | ||
{{#if:{{{spotify|}}}| | {{#if:{{{spotify|}}}| | ||
! style="background:{{{imageBG|#f0f0f0}}}; text-align:center | ! style="background:{{{imageBG|#f0f0f0}}}; text-align:center" colspan="2" {{!}} {{#widget:Spotify|track={{{spotify|}}}|width=300}} | ||
}} | }} | ||
{{!}}- | {{!}}- | ||
{{#if:{{{apple|}}}| | {{#if:{{{apple|}}}| | ||
! style="background:{{{imageBG|#f0f0f0}}}; text-align:center | ! style="background:{{{imageBG|#f0f0f0}}}; text-align:center" colspan="2" {{!}} {{#widget:AppleMusic|track={{{apple|}}}|width=300}} | ||
}} | }} | ||
| colspan=2 style="tbackground:transparent; padding:0; line-height:10px" | | | colspan=2 style="tbackground:transparent; padding:0; line-height:10px" | |
Revision as of 00:47, September 15, 2022
Music infobox | |
---|---|
Usage
This template accepts a number of parameters, including in-built functionality for the automatic embedding of YouTube and Vimeo videos and Spotify/Apple music embeds. As such, when embedding YouTube (etc) videos, all you need to add to the relevant parameter is the ID at the end of the given URL. For an example of this in usage, see the Spirit of Fire page. The video parameter is kept around for other use cases, and does not require a specific ID.
Copy the following:
{{Music infobox |video= |yt= |vimeo= |album= |composer= |length= |last= |next= |spotify= |apple= }}