Template:Music infobox: Difference between revisions

From Halopedia, the Halo wiki

m (Text replacement - "dummy edit" to "Category:Infobox templates")
Tag: Manual revert
 
(87 intermediate revisions by 7 users not shown)
Line 1: Line 1:
{|style="border:solid 2px #000000; -moz-border-radius:10px; float:right;" width="250px"
{{Infobox|start|bg=#FC0|color=#000}}
|-
{{Infobox|title|name={{{name|}}}}}
|colspan="2" style="text-align:center; background:#6B3FA0; -moz-border-radius-topleft: 0.5em; -moz-border-radius-topright: 0.5em;"|<big>'''{{{name}}}'''<big>
 
|-
{{Infobox|media|content={{{video|}}}|caption={{{caption|}}}}}
|colspan="2" style="text-align:center"|{{{video|}}}
{{Infobox|media|content={{#if:{{{yt|}}}|{{#widget:YouTube|id={{{yt}}}|width=300}}}}}}
|-
{{Infobox|media|content={{#if:{{{vimeo|}}}|{{#widget:Vimeo|id={{{vimeo}}}|width=300}}}}}}
{{#if:{{{album|}}}|<nowiki/>
 
{{!}}-
{{Infobox|entry|title={{{soundtrack-title|Soundtrack}}}|content={{{soundtrack|}}}}}
{{!}} style="background:#ffffff;" {{!}}'''Album:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{album|}}}  
{{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:{{{length|}}}|<nowiki/>
{{Infobox|entry|title={{{last-title|Previous}}}|content={{{last|}}}}}
{{!}}-
{{Infobox|entry|title={{{next-title|Next}}}|content={{{next|}}}}}
{{!}} style="background:#ffffff;" {{!}}'''Length:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{length|}}}  
 
}}
{{Infobox|media|content={{#if:{{{spotify|}}}|{{#widget:Spotify|track={{{spotify}}}|width=300}}}}}}
|-
{{Infobox|media|content={{#if:{{{apple|}}}|{{#widget:AppleMusic|track={{{apple}}}|width=300}}}}}}
{{#if:{{{composer|}}}|<nowiki/>
 
{{!}}-
{{Infobox|end}}<includeonly>{{Infobox/pagetitle|name={{{pagename|{{{name|}}}}}}|label={{{pagelabel|Music}}}}}</includeonly><noinclude>{{clear}}
{{!}} style="background:#ffffff;" {{!}}'''Composer:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{composer|}}}
==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 (music)|Spirit of Fire]] page. The video parameter is kept around for other use cases, and does not require a specific ID.
 
Copy the following:
 
<pre>
{{Music infobox
|video=
|yt=
|vimeo=
|album=
|composer=
|length=
|last=
|next=
|spotify=
|apple=
}}
}}
|-{{#if:{{{producer|}}}|<nowiki/>
{{!}}-
{{!}} style="background:#ffffff;" {{!}}'''Producer:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{producer|}}}
}}
|-
{{#if:{{{last|}}}|<nowiki/>
{{!}}-
{{!}} style="background:#ffffff;" {{!}}'''Previous song:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{last|}}}
}}
|-
{{#if:{{{next|}}}|<nowiki/>
{{!}}-
{{!}} style="background:#ffffff;" {{!}}'''Next song:'''{{!!}} style="color:#000000; background:#FFFFFF;" {{!}}{{{next|}}}
}}
|}<noinclude>
== Usage ==
<pre>
{{Infobox song
| name      =
| video      =
| album      =
| composer  =
| length    =
| producer  =
| last      =
| next      =
}}
</pre>
</pre>
[[Category:Templates|{{PAGENAME}}]]
 
</noinclude>
[[Category:Infobox templates]]</noinclude>

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