Template:Music infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "}} {{!}}- {{#if:" to "}} |- {{#if:")
m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:260px; color:{{{color|#000}}}; background:{{{BG|#FFCC00}}}" cellspacing="0"
{{Infobox|start|bg=#FC0|color=#000}}
! class="infoboxheading" colspan="2" style="background:{{{nameBG|transparent}}}; color:{{{color|#000}}}" | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{Infobox|title|name={{{name|}}}}}
|-
 
{{#if:{{{video|}}}|
{{Infobox|media|content={{{video|}}}|caption={{{caption|}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}" {{!}} {{{video}}}
{{Infobox|media|content={{#if:{{{yt|}}}|{{#widget:YouTube|id={{{yt}}}|width=300}}}}}}
}}
{{Infobox|media|content={{#if:{{{vimeo|}}}|{{#widget:Vimeo|id={{{vimeo}}}|width=300}}}}}}
|-
 
{{#if:{{{yt|}}}|
{{Infobox|entry|title={{{soundtrack-title|Soundtrack}}}|content={{{soundtrack|}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}" {{!}} {{#widget:YouTube|id={{{yt}}}|width=300}}
{{Infobox|entry|title={{{album-title|Album}}}|content={{{album|}}}}}
}}
{{Infobox|entry|title={{{composer-title|Composer(s)}}}|content={{{composer|}}}}}
|-
{{Infobox|entry|title={{{length-title|Length}}}|content={{{length|}}}}}
{{#if:{{{vimeo|}}}|
{{Infobox|entry|title={{{last-title|Previous}}}|content={{{last|}}}}}
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}" {{!}} {{#widget:Vimeo|id={{{vimeo}}}|width=300}}
{{Infobox|entry|title={{{next-title|Next}}}|content={{{next|}}}}}
}}
 
|-
{{Infobox|media|content={{#if:{{{spotify|}}}|{{#widget:Spotify|track={{{spotify}}}|width=300}}}}}}
{{#if:{{{soundtrack|}}}|
{{Infobox|media|content={{#if:{{{apple|}}}|{{#widget:AppleMusic|track={{{apple}}}|width=300}}}}}}
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; width:100px" {{!}}
 
{{{soundtrack-title|Soundtrack}}}:
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Music}}}}}</includeonly><noinclude>{{clear}}
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
==Usage instructions==
{{{soundtrack}}}
{{!}}-}}
|-
{{#if:{{{album|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}; width:100px" {{!}}
{{{album-title|Album}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{album}}}
{{!}}-}}
{{#if:{{{composer|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{composer-title|Composer(s)}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{composer}}}
{{!}}-}}
{{#if:{{{length|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{length-title|Length}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{length}}}
{{!}}-}}
{{#if:{{{last|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{last-title|Previous}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{last}}}
{{!}}-}}
{{#if:{{{next|}}}|
{{!}} class="infoboxlabel" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{next-title|Next}}}:
{{!}} class="infoboxcell" style="background:{{{fieldBG|#F2F3F4}}}" {{!}}
{{{next}}}
{{!}}-}}
|-
{{#if:{{{spotify|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}" {{!}} {{#widget:Spotify|track={{{spotify}}}|width=300}}
}}
|-
{{#if:{{{apple|}}}|
{{!}} class="infoboxmedia" colspan="2" style="background:{{{imageBG|#f0f0f0}}}" {{!}} {{#widget:AppleMusic|track={{{apple}}}|width=300}}
}}
| class="infoboxfooter" colspan="2" | &nbsp;
|}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude>
== 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.



Latest revision as of 10:11, June 14, 2024

Music infobox
 

Usage instructions

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