On November 27th, 2022, the 8,000th article was added to the SuccuWiki!

Template:Infobox single/doc: Difference between revisions

From SuccuWiki - The Wiki of the Succubi
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} {{Music infobox header}} ==Usage== This is the template for a single (A- or B-side), '''not''' a song. ==Code== {{Infobox single <!-- See Wikipedi...")
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 2: Line 2:
{{Music infobox header}}
{{Music infobox header}}
==Usage==
==Usage==
This is the template for a single (A- or B-side), '''not''' a song.
This is the template for a single (A- or B-side), '''not''' a song.


==Code==
==Code==
{{Infobox single <!-- See Wikipedia:WikiProject_Songs -->
{{Infobox single
| Name          = Country House
| Name          = Country House
| Artist        = [[Blur (band)|Blur]]
| Artist        = Blur
| Album          = [[The Great Escape (Blur album)|The Great Escape]]
| Album          = The Great Escape
| Released      = {{Start date|1995|08|14}} <small>([[United Kingdom|UK]])</small>
| Released      = {{Start date|1995|08|14}} <small>UK]</small>
| Format        = {{Flatlist |
| Format        = {{Flatlist |
* [[CD single|CD]]
* CD
* [[Gramophone record|7" vinyl]]
* 7" vinyl
* [[cassette single|cassette]]
* cassette
   }}
   }}
| Recorded      = 1995
| Recorded      = 1995
| Genre          = [[Britpop]]
| Genre          = Britpop
| Length        = {{Duration|m=3|s=57}}
| Length        = {{Duration|m=3|s=57}}
| Label          =  {{flat list|
| Label          =  {{flat list|
* [[Food Records|Food]]
* Food Records
* [[EMI]]
* EMI
}}
}}
| Producer      = [[Stephen Street]]
| Producer      = Stephen Street
| Last single    = "[[To the End (Blur song)|To the End]]"<br />(1994)
| Last single    = "To the End"<br />(1994)
| This single    = "'''Country House'''"<br />(1995)
| This single    = "'''Country House'''"<br />(1995)
| Next single    = "[[The Universal (song)|The Universal]]"<br />(1995)
| Next single    = "The Universal"<br />(1995)
}}
}}


<pre style="overflow:auto;">
<pre style="overflow:auto;">
{{Infobox single <!-- See Wikipedia:WikiProject_Songs -->
{{Infobox single  
| Name          =  
| Name          =  
| Cover        = <!-- just the file name -->
| Cover        = <!-- just the file name -->
Line 62: Line 60:
;Cover : Upload a copy of the single cover (under fair—use the tag "<nowiki>{{Non-free album cover}}</nowiki>"). Ideally the image should be 200px wide. Enter the file name only into the field: <code><nowiki><Image Name>.jpg</nowiki></code>.
;Cover : Upload a copy of the single cover (under fair—use the tag "<nowiki>{{Non-free album cover}}</nowiki>"). Ideally the image should be 200px wide. Enter the file name only into the field: <code><nowiki><Image Name>.jpg</nowiki></code>.
;Border : Type "yes" in this field to place a 1px border around the single's cover.
;Border : Type "yes" in this field to place a 1px border around the single's cover.
;Alt : Alt text for the cover image, to describe it to visually impaired readers. See [[WP:ALT]].
;Alt : Alt text for the cover image, to describe it to visually impaired readers.
;Artist : This field should contain the name of the artist. This field is mandatory.
;Artist : This field should contain the name of the artist. This field is mandatory.
;Album : If the single was also released on an album, enter the name of the album. If the album has a Wikipedia article, link the article name as usual. The template will italicize the album name.
;Album : If the single was also released on an album, enter the name of the album. If the album has a Wikipedia article, link the article name as usual. The template will italicize the album name.
Line 89: Line 87:




{{#ifeq:{{FULLPAGENAME}}|Wikipedia:WikiProject Songs||
== Microformat ==
== Microformat ==
{{UF-hcal}}}}
{{UF-hcal}}}}
==TemplateData==
 
{{TemplateDataHeader}}
<templatedata>
{
    "description": "An Infobox for singles",
    "params": {
        "Name": {
            "label": "Name",
            "description": "The name of the single.",
            "type": "string",
            "default": "(PAGENAME)",
            "required": false
        },
        "Artist": {
            "label": "Artist",
            "description": "This field should contain the name of the artist.",
            "type": "string",
            "required": true
        },
        "Cover": {
            "label": "Cover",
            "description": "An image of the single cover, a file name, e.g. 'Relax_single.jpg'. The image should be uploaded under fair—use  tag {{Non-free album cover}}.",
            "type": "string",
            "required": false
        },
        "Alt": {
            "label": "Alt",
            "description": "Alt text for the cover image, to describe it to visually impaired readers.",
            "type": "string",
            "required": false
        },
        "Caption": {
            "label": "Caption",
            "description": "Caption for the cover image.",
            "type": "string",
            "required": false
        },
        "Border": {
            "label": "Border",
            "description": "Set to yes to put a 1 pixel border around the cover image.",
            "type": "string",
            "required": false
        },
        "Album": {
            "label": "Album",
            "description": "If the single was also released on an album, enter the name of the album. If the album has a Wikipedia article, link the article name as usual. The template will italicize the album name. For guidelines on whether a single should be described as being from a particular album, see [[Template:infobox album#Template:Singles]].",
            "type": "string",
            "aliases": ["from Album"],
            "required": false
        },
        "A-side": {
            "label": "A-side",
            "description": "The A-side song title if different from the name. If it has a Wikipedia article use a link. Only one of the fields 'A-side' or 'B-side' should be used.",
            "type": "string",
            "required": false
        },
        "B-side": {
            "label": "B-side",
            "description": "Use this field to display the B-side song title appearing on the opposite side of the single. If it has a Wikipedia article use a link. Only one of the fields 'A-side' or 'B-side' should be used.",
            "type": "string",
            "required": false
        },
        "Released": {
            "label": "Released",
            "description": "The earliest known date of release, using a single occurrence of {{Start date}} as {{Start date|YYYY|MM|DD}}, for example {{Start date|2007|7|31}}. (Use {{Start date|YYYY|MM}} if only year and month are known, or {{Start date|YYYY}} for just a year).",
            "type": "string",
            "required": false
        },
        "Recorded": {
            "label": "Recorded",
            "description": "This field should include details on when and where the song was recorded. Separate multiple values using {{Plainlist}}.",
            "type": "string",
            "required": false
        },
        "Format": {
            "label": "Format",
            "description": "The way that the single was released; i.e. 7-inch single, 12-inch single, CD single, cassette single, digital download (note the piped download link). Separate multiple values using {{Flatlist}}.",
            "type": "string",
            "required": false
        },
        "Genre": {
            "label": "Genre",
            "description": "The music genres that the single is from. These must not be original research, and should be stated and referenced in a 'Composition' section of the article. Separate multiple values using {{Flatlist}}.",
            "type": "string",
            "required": false
        },
        "Length": {
            "label": "Length",
            "description": "The length should use {{Duration}} thus: {{Duration|m=3|s=45}}, renders as 3:45, for 3 minutes 45 seconds",
            "type": "string",
            "required": false
        },
        "Label": {
            "label": "Label",
            "description": "This field should refer to the label on which the single/album was originally released. Where significantly different versions have been released (featuring alternate track listings) e.g. U.S. vs. UK, the later release date and/or record label should be mentioned in the article. Drop words like 'Records' from the end of the label's name (e.g. use [[Universal Records|Universal]] rather than [[Universal Records]]). Separate multiple values using {{Flatlist}}.",
            "type": "string",
            "required": false
        },
        "Writer": {
            "label": "Writer",
            "description": "",
            "type": "string",
            "required": false
        },
        "Producer": {
            "label": "Producer",
            "description": "The producer is not necessarily the same as the 'Artist' field. Separate multiple values using {{Flatlist}}.",
            "type": "string",
            "required": false
        },
        "Certification": {
            "label": "Certification",
            "description": "Music recording sales certification. Example :Platinum <small>([[Recording Industry Association of America|RIAA]])</small>",
            "type": "string",
            "required": false
        },
        "Chronology": {
            "label": "Chronology",
            "description": "Header for chronology section",
            "default": "(Artist name)",
            "type": "string",
            "required": false
        },
        "Last single": {
            "label": "Previous single",
            "description": "Previous single in the artists chronology. Use wiki-link when appropriate. Example: \"[[Relax (song)|Relax]]\"<br />(1983)",
            "type": "string",
            "required": false
        },
        "Next single": {
            "label": "Next single",
            "description": "Next single in the artists chronology. Use wiki-link when appropriate. Example: \"[[The Power of Love (Frankie Goes to Hollywood song)|The Power Of Love]]\"<br />(1984)",
            "type": "string",
            "required": false
        },
        "This single": {
            "label": "This single",
            "description": "Name and year of this single for the chronology. Example: \"Two Tribes\"<br />(1984)",
            "type": "string",
            "required": false
        },
        "Misc": {
            "label": "Misc",
            "description": "This field allows you to provide more infobox data such as additional chronologies using {{Extra chronology}}, a track listing using {{Extra track listing}}, or extra covers using {{Extra album cover}}. Set 'Type=single' on those templates so the section titles use the same background color as the rest of the infobox.",
            "type": "string",
            "required": false
        },
        "Clip requested?": {
            "label": "Clip requested?",
            "description": "Set to 'yes' to add article to [[Category:Song articles missing an audio sample]]",
            "type": "string",
            "required": false
        }
    }
}
</templatedata>


<includeonly>
<includeonly>

Latest revision as of 11:42, 11 November 2013

Usage

This is the template for a single (A- or B-side), not a song.

Code

"Country House"
Single by Blur
from the album The Great Escape
Released August 14, 1995 (1995-08-14) UK]
Format
  • CD
  • 7" vinyl
  • cassette
Recorded 1995
Genre Britpop
Length 3:57
Label
  • Food Records
  • EMI
Producer Stephen Street
Blur singles chronology

"To the End"
(1994)
"Country House"
(1995)
"The Universal"
(1995)
{{Infobox single 
| Name          = 
| Cover         = <!-- just the file name -->
| Border        = 
| Alt           = 
| Caption       = 
| Artist        = 
| Album         = 
| A-side        = 
| B-side        = 
| Released      = <!-- {{Start date|YYYY|MM|DD}} -->
| Format        = 
| Recorded      = 
| Genre         = 
| Length        = <!-- {{Duration|m=MM|s=SS}} -->
| Label         = 
| Writer        = 
| Producer      = 
| Certification = 
| Chronology    = 
| Last single   = 
| This single   = 
| Next single   = 
| Misc          = 
}}

Parameters

Name
This field should contain the name of the single. This field is mandatory.
Cover
Upload a copy of the single cover (under fair—use the tag "{{Non-free album cover}}"). Ideally the image should be 200px wide. Enter the file name only into the field: <Image Name>.jpg.
Border
Type "yes" in this field to place a 1px border around the single's cover.
Alt
Alt text for the cover image, to describe it to visually impaired readers.
Artist
This field should contain the name of the artist. This field is mandatory.
Album
If the single was also released on an album, enter the name of the album. If the album has a Wikipedia article, link the article name as usual. The template will italicize the album name.
A-side
Use this field to display the A-side song title appearing on the opposite side of the single.
B-side
Use this field to display the B-side song title appearing on the opposite side of the single. If it has a Wikipedia article use a link. Only one of the fields "A-side" or "B-side" should be used.
Released
This field should refer to the earliest known date, using a single occurrence of {{Start date}} as {{Start date|YYYY|MM|DD}}, for example "{{Start date|2007|7|31}}". (Use "{{Start date|YYYY|MM}}" if only year and month are known, or "{{Start date|YYYY}}" for just a year).
Recorded
This field should include details on when and where the song was recorded. Separate multiple values using {{Plainlist}}.
Format
the way that the single was released; i.e. 7-inch single, 12-inch single, CD single, cassette single, digital download (note the piped download link). Separate multiple values using {{Flatlist}}.
Genre
the music genre(s) that the single is from. These must not be original research, and should be stated and referenced in a 'Composition' section of the article. Separate multiple values using {{Flatlist}}.
Length
The length should use {{Duration}} thus: {{Duration|m=3|s=45}}, renders as 3:45, for 3 minutes 45 seconds
Label
This field should refer to the label on which the single/album was originally released. Where significantly different versions have been released (featuring alternate track listings) e.g. U.S. vs. UK, the later release date and/or record label should be mentioned in the article. Drop words like "Records" from the end of the label's name (e.g. use [[Universal Records|Universal]] rather than [[Universal Records]]). Separate multiple values using {{Flatlist}}.
Producer
The producer is not necessarily the same as the "Artist" field. Separate multiple values using {{Flatlist}}.
Misc
This field allows you to provide more infobox data such as additional chronologies using {{Extra chronology}}, a track listing using {{Extra track listing}}, or extra covers using {{Extra album cover}}. Set |Type=single on those templates so the section titles use the same background color as the rest of the infobox.

Chronology

The chronology section should link to the previous single on the left and the next single on the right. Songs should be ordered based on the first release dates of their official singles.

  • For first singles the left box (the "Last single=" field) should be left blank.
  • For latest singles, the right box (the "Next single=" field) should be left blank.

By default, the chronology section begins with an "artist Chronology" header. If you specify the optional "Chronology=" field, the text you supply will replace the "artist" portion of that header. This is useful when a single is released by two or more artists and you want to supply a chronology for each using the built-in chronology for one artist and the {{Extra chronology}} template for the other(s).

Wikipedia's date style guidelines recommend that years should not be linked within the chronology section.

  • Note: album cover images should NOT be used in this section as they do not meet Wikipedia fair use requirements.


Microformat

The HTML mark up produced by this template includes an hCalendar microformat, which makes the event details parsable by computers, either acting automatically to catalogue articles across Wikipedia, or via a browser tool operated by a person, to (for example) add the subject to a calendar or diary application.

Sub-templates

Dates will only be included if you use {{Start date}} or {{End date}} (use the former for single dates; but do not use any of these if the date is before 1583 CE).

URLs will only be included if you use {{URL}}.

Please do not remove instances of these sub-templates.

Classes

hCalendar uses HTML classes including:

  • attendee
  • contact
  • description
  • dtend
  • dtstart
  • location
  • organiser
  • summary
  • url
  • vevent

Please do not rename or remove these classes; nor collapse nested elements which use them.}}