Template:Music infobox: Difference between revisions
From Halopedia, the Halo wiki
m (Text replacement - "{{#if:({{{[^\|}\n]+\|}}})\|↵{{!}} ?class="infoboxlabel" style="[^\n"]+" {{!}}↵([^\n]+):↵{{!}} ?class="infoboxcell" style="[^\n"]+" {{!}}↵{{{[^\|}\n]+\|?}}}↵}}↵\|-" to "{{Infobox|entry|title=$2|content=$1}}") |
No edit summary |
||
Line 1: | Line 1: | ||
{ | {{Infobox|start|bg=#FC0|color=#000}} | ||
{{Infobox|title|name={{{name|}}}}} | |||
{{ | {{Infobox|media|content={{{video|}}}|caption={{{caption|}}}}} | ||
{{Infobox|media|content={{#if:{{{yt|}}}|{{#widget:YouTube|id={{{yt}}}|width=300}}}}}} | |||
{{Infobox|media|content={{#if:{{{vimeo|}}}|{{#widget:Vimeo|id={{{vimeo}}}|width=300}}}}}} | |||
| | |||
{{#if:{{{yt|}}}| | |||
}} | |||
| | |||
{{#if:{{{vimeo|}}}| | |||
}} | |||
{{Infobox|entry|title={{{soundtrack-title|Soundtrack}}}|content={{{soundtrack|}}}}} | {{Infobox|entry|title={{{soundtrack-title|Soundtrack}}}|content={{{soundtrack|}}}}} | ||
{{Infobox|entry|title={{{album-title|Album}}}|content={{{album|}}}}} | {{Infobox|entry|title={{{album-title|Album}}}|content={{{album|}}}}} | ||
Line 20: | Line 12: | ||
{{Infobox|entry|title={{{last-title|Previous}}}|content={{{last|}}}}} | {{Infobox|entry|title={{{last-title|Previous}}}|content={{{last|}}}}} | ||
{{Infobox|entry|title={{{next-title|Next}}}|content={{{next|}}}}} | {{Infobox|entry|title={{{next-title|Next}}}|content={{{next|}}}}} | ||
{{#if:{{{spotify|}}}| | |||
{{Infobox|media|content={{#if:{{{spotify|}}}|{{#widget:Spotify|track={{{spotify}}}|width=300}}}}}} | |||
}} | {{Infobox|media|content={{#if:{{{apple|}}}|{{#widget:AppleMusic|track={{{apple}}}|width=300}}}}}} | ||
| | |||
{{#if:{{{apple|}}}| | |||
}} | |||
{{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude> | {{Infobox|end}}<includeonly>{{pagetitle|{{{pagename|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}}}} - {{{pagelabel|Music {{#ifeq:{{SUBPAGENAME}}|Silver|(Silver Timeline)}}}}}}}</includeonly><noinclude> | ||
== Usage == | == Usage == |
Revision as of 11:48, August 29, 2023
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= }}