Jump to content

Template:Infobox song: Difference between revisions

From Musician Wiki
Created page with "<noinclude> {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page --> </noinclude> <includeonly>{{Infobox | bodyclass = vevent | bodystyle = width:{{#if:{{{box_width|}}}|{{{box_width}}}|22em}}; | above = {{{name|{{PAGENAME}}}}} | aboveclass = summary | abovestyle = font-size:125%; font-weight:bold; text-align:center; | image = {{#if:{{{cover|}}} | File:{{{cover}}}|{{#if:{{{cover_size|}}}..."
 
Blanked the page
Tag: Blanking
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
{{Documentation subpage}}
<!-- Please place categories where indicated at the bottom of this page -->
</noinclude>
<includeonly>{{Infobox
| bodyclass      = vevent
| bodystyle      = width:{{#if:{{{box_width|}}}|{{{box_width}}}|22em}};
| above          = {{{name|{{PAGENAME}}}}}
| aboveclass    = summary
| abovestyle    = font-size:125%; font-weight:bold; text-align:center;


| image          = {{#if:{{{cover|}}}
  | [[File:{{{cover}}}|{{#if:{{{cover_size|}}}|{{{cover_size}}}|220px}}|{{#if:{{{alt|}}}|{{{alt}}}|{{{name|{{PAGENAME}}}}} cover art}}]]
  | {{#if:{{{image|}}}
    | [[File:{{{image}}}|{{#if:{{{image_size|}}}|{{{image_size}}}|220px}}|{{#if:{{{alt|}}}|{{{alt}}}|{{{name|{{PAGENAME}}}}} }}]]
  }}
}}
| caption        = {{{alt|{{{caption|}}}}}}
| label1        = Song
| data1          = {{#if:{{{type|}}}|by [[{{{artist|}}}]]}}
| label2        = Artist
| data2          = {{{artist|}}}
| label3        = Album
| data3          = {{{album|}}}
| label4        = Released
| data4          = {{{released|}}}
| label5        = Recorded
| data5          = {{{recorded|}}}
| label6        = Studio
| data6          = {{{studio|}}}
| label7        = Venue
| data7          = {{{venue|}}}
| label8        = Genre
| data8          = {{{genre|}}}
| label9        = Length
| data9          = {{{length|}}}
| label10        = Label
| data10        = {{{label|}}}
| label11        = Songwriter(s)
| data11        = {{{writer|}}}
| label12        = Composer(s)
| data12        = {{{composer|}}}
| label13        = Lyricist(s)
| data13        = {{{lyricist|}}}
| label14        = Producer(s)
| data14        = {{{producer|}}}
| label15        = {{#if:{{{prev_title|}}}|{{{chronology|Singles chronology}}}}}
| data15        = {{#if:{{{prev_title|}}}|
  {| style="width:100%; font-size:85%; text-align:center; border-collapse:collapse;"
  |-
  | style="width:33%; vertical-align:middle; padding:2px;" | {{#if:{{{prev_title|}}}|"[[{{{prev_title}}}]]"<br/><small>({{{prev_year|}}}})</small>|&nbsp;}}
  | style="width:33%; vertical-align:middle; padding:2px;" | '''{{{name|{{PAGENAME}}}}}'''
  | style="width:33%; vertical-align:middle; padding:2px;" | {{#if:{{{next_title|}}}|"[[{{{next_title}}}]]"<br/><small>({{{next_year|}}}})</small>|&nbsp;}}
  |}
}}
| label16        = {{#if:{{{prev2_title|}}}|{{{chronology2|}}}}}
| data16        = {{#if:{{{prev2_title|}}}|
  {| style="width:100%; font-size:85%; text-align:center; border-collapse:collapse;"
  |-
  | style="width:33%; vertical-align:middle; padding:2px;" | {{#if:{{{prev2_title|}}}|"[[{{{prev2_title}}}]]"<br/><small>({{{prev2_year|}}}})</small>|&nbsp;}}
  | style="width:33%; vertical-align:middle; padding:2px;" | '''{{{name|{{PAGENAME}}}}}'''
  | style="width:33%; vertical-align:middle; padding:2px;" | {{#if:{{{next2_title|}}}|"[[{{{next2_title}}}]]"<br/><small>({{{next2_year|}}}})</small>|&nbsp;}}
  |}
}}
| label17        = {{#if:{{{misc|}}}|&nbsp;}}
| data17        = {{{misc|}}}
}}</includeonly>
<!-- ======================== DOCUMENTATION ======================== -->
<noinclude>
{{documentation|content=
==Usage==
Copy and paste the template below into your article and fill in the relevant fields. All parameters are optional — unused parameters should be removed or left blank.
<pre>
{{Infobox song
| name        =
| cover      =
| cover_size  =
| alt        =
| type        =
| artist      =
| album      =
| released    =
| recorded    =
| studio      =
| venue      =
| genre      =
| length      =
| label      =
| writer      =
| composer    =
| lyricist    =
| producer    =
| chronology  =
| prev_title  =
| prev_year  =
| next_title  =
| next_year  =
| chronology2 =
| prev2_title =
| prev2_year  =
| next2_title =
| next2_year  =
| misc        =
}}
</pre>
==Parameters==
===Basic information===
{| class="wikitable"
! Parameter !! Description
|-
| <code>name</code> || The name of the song. Defaults to the page name if left blank.
|-
| <code>cover</code> || Filename of the cover art image (e.g. <code>Example.jpg</code>). Do not include the <code>File:</code> prefix.
|-
| <code>cover_size</code> || Width of the cover image. Defaults to <code>220px</code>.
|-
| <code>alt</code> || Alt text for the cover image, used for accessibility. Also appears as caption.
|-
| <code>type</code> || The release type (e.g. <code>single</code>, <code>promotional single</code>, <code>album track</code>).
|-
| <code>artist</code> || The performing artist or group. Use wikilinks where appropriate (e.g. <code><nowiki>[[The Beatles]]</nowiki></code>).
|-
| <code>album</code> || The album the song appears on. Use wikilinks where appropriate.
|-
| <code>released</code> || Release date. Use <code><nowiki>{{Start date|YYYY|MM|DD}}</nowiki></code> for proper formatting.
|-
| <code>recorded</code> || Date or period during which the song was recorded.
|-
| <code>studio</code> || The recording studio or studios where the song was recorded.
|-
| <code>venue</code> || For live recordings, the venue where the song was recorded.
|-
| <code>genre</code> || The musical genre(s). Use wikilinks where appropriate.
|-
| <code>length</code> || The running time of the song, formatted as <code>M:SS</code> (e.g. <code>3:45</code>).
|-
| <code>label</code> || The record label(s) that released the song. Use wikilinks where appropriate.
|-
| <code>writer</code> || The songwriter(s). Use wikilinks where appropriate.
|-
| <code>composer</code> || The composer(s), if different from the songwriter.
|-
| <code>lyricist</code> || The lyricist(s), if credited separately from the composer.
|-
| <code>producer</code> || The record producer(s). Use wikilinks where appropriate.
|}
===Singles chronology===
These parameters create a navigation strip showing the previous and next singles in an artist's discography. Up to two chronology strips are supported.
{| class="wikitable"
! Parameter !! Description
|-
| <code>chronology</code> || Label for the first chronology strip (e.g. <code>John Lennon singles</code>). Defaults to <code>Singles chronology</code>.
|-
| <code>prev_title</code> || Title of the previous single in the chronology. Creates a wikilink automatically.
|-
| <code>prev_year</code> || Year the previous single was released.
|-
| <code>next_title</code> || Title of the next single in the chronology. Creates a wikilink automatically.
|-
| <code>next_year</code> || Year the next single was released.
|-
| <code>chronology2</code> || Label for a second chronology strip (e.g. for a featured artist's discography).
|-
| <code>prev2_title</code> || Title of the previous single in the second chronology.
|-
| <code>prev2_year</code> || Year of the previous single in the second chronology.
|-
| <code>next2_title</code> || Title of the next single in the second chronology.
|-
| <code>next2_year</code> || Year of the next single in the second chronology.
|}
===Miscellaneous===
{| class="wikitable"
! Parameter !! Description
|-
| <code>misc</code> || Any additional content to display at the bottom of the infobox, such as a certification template or audio sample.
|-
| <code>box_width</code> || Override the default infobox width of <code>22em</code>.
|}
==Full example==
The following example shows the template as used on an article about a single:
<pre>
{{Infobox song
| name        = Sunglasses at Night
| cover      = Sunglasses at Night Corey Hart.jpg
| alt        = Single cover showing Corey Hart wearing sunglasses
| type        = single
| artist      = [[Corey Hart]]
| album      = [[First Offense (album)|First Offense]]
| released    = {{Start date|1984|6|1}}
| recorded    = 1983–1984
| studio      = Le Studio, Morin-Heights, Quebec
| genre      = [[Synth-pop]], [[New Wave music|new wave]], [[pop rock]]
| length      = 4:07
| label      = [[EMI America Records|EMI America]]
| writer      = Corey Hart
| producer    = [[Jon Astley]], [[Phil Chapman]]
| chronology  = [[Corey Hart]] singles
| prev_title  =
| prev_year  =
| next_title  = It Ain't Enough
| next_year  = 1984
}}
</pre>
==See also==
* [[Template:Infobox album]]
* [[Template:Infobox music video]]
* [[Template:Start date]]
* [[Template:Track listing]]
[[Category:Music infobox templates]]
[[Category:Song templates]]
}}
</noinclude>

Latest revision as of 17:12, 22 April 2026