Template:Music infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}" to "{{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}")
m (Text replacement - "{{pagetitle\|{{{pagename\|{{#if:{{{name\|}}}\|{{{name}}}\|{{PAGETITLE}}}}}}} - {{{pagelabel\|([^ ]+) {{#ifeq:{{SUBPAGENAME}}\|Silver\|\(Silver Timeline\)}}}}}}}" to "{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|$1}}}}}")
Line 16: Line 16:
{{Infobox|media|content={{#if:{{{apple|}}}|{{#widget:AppleMusic|track={{{apple}}}|width=300}}}}}}
{{Infobox|media|content={{#if:{{{apple|}}}|{{#widget:AppleMusic|track={{{apple}}}|width=300}}}}}}


{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGETITLE}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Music}}}}}</includeonly><noinclude>
== Usage ==
== 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 (music)|Spirit of Fire]] page. The video parameter is kept around for other use cases, and does not require a specific ID.
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 (music)|Spirit of Fire]] page. The video parameter is kept around for other use cases, and does not require a specific ID.

Revision as of 11:16, March 22, 2024

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=
}}