Template:Music infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "{{{pagelabel\|([^\n}]+)}}}" to "{{{pagelabel|$1 {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}")
m (Text replacement - "{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}" to "{{{name|{{PAGENAME}}}}}")
Line 1: Line 1:
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:260px; color:{{{color|#000}}}; background:{{{BG|#FFCC00}}};"
{| class="infobox" cellspacing="0" cellpadding="0" border="0" style="width:260px; color:{{{color|#000}}}; background:{{{BG|#FFCC00}}};"
{{!}}-
{{!}}-
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:{{{color|#000}}};" colspan="2" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
! style="background:{{{nameBG|transparent}}}; text-align:center; font-size:120%; color:{{{color|#000}}};" colspan="2" | {{{name|{{PAGENAME}}}}}
{{!}}-
{{!}}-
{{#if:{{{video|}}}|
{{#if:{{{video|}}}|
Line 61: Line 61:
}}
}}
| colspan=2 style="tbackground:transparent; padding:0; line-height:10px;" | 
| colspan=2 style="tbackground:transparent; padding:0; line-height:10px;" | 
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>
|}<includeonly>{{pagetitle|{{{pagename|{{{name|{{PAGENAME}}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</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 19:40, April 23, 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=
}}