Template:Singles

Singles from Singles
Documentation icon Template documentation[view] [edit] [history] [purge]

This infobox is to be used as an additional miscellaneous listing at the bottom of Template:Infobox album (talk, links, edit).

Usage

This infobox should be placed in the |misc= field as shown below, using the field cases also shown below. Any unused fields may be left out.

If this template is substituted, it will return a cleaned-up copy of itself (see Wikipedia:Substitution trick) with unnecessary parameters removed and deprecated parameters replaced. Parameter indentation will also automatically be fixed.

{{Infobox album <!-- See Wikipedia:WikiProject_Albums -->
...
| misc           =
{{subst:Singles
| name         = 
| type         = 
| single1      = 
| single1date  =
| single2      = 
| single2date  =
| single3      = 
| single3date  =
| single4      = 
| single4date  =
| single5      = 
| single5date  =
| single6      = 
| single6date  =
| single7      = 
| single7date  =
| single8      = 
| single8date  =
| single9      = 
| single9date  =
| single10     = 
| single10date =
| single11     = 
| single11date =
| single12     = 
| single12date =
}}
}}
Name
The name of the album (the formatting will add italics).
Type
The album type, e.g., studio, live, compilation, etc., specified in Template:Infobox album#Type.
Single #
The name of the single (the formatting will add "quote" marks). If it has a WP article, add a link.
Single # date
The date the single was released. If full date is unknown, use month and year or just year. Do not use the {{Start date}} template in this field.

Note that all fields are already properly formatted, so italics or quotation marks need not be entered in fields.

TemplateData

This is the TemplateData documentation for the template used by the new VisualEditor.

Singles

<templatedata> { "params": { "type": { "aliases": [ "Type" ], "label": "Type",

"description": "To specify the type of recording (should be the same as in
Untitled
). Valid values are: single, studio, demo, ep, live, greatest, remix, box, compilation, mixtape, soundtrack, film, cast, video, other",

"example": "studio", "type": "string", "required": true, "suggested": true }, "name": { "aliases": [ "Name" ], "label": "Name", "description": "Name of the album or EP", "example": "1989", "type": "string", "required": true, "suggested": true }, "single1": { "aliases": [ "single 1", "Single 1" ], "label": "Single 1", "description": "Name of the first single. Add a link if an article exists", "example": "Shake It Off", "type": "string", "required": true, "suggested": true }, "single1date": { "aliases": [ "single 1 date", "Single 1 date" ], "label": "Single 1 date", "description": "Release date of the first single", "example": "August 18, 2014", "type": "date", "suggested": true }, "single2": { "aliases": [ "single 2", "Single 2" ], "label": "Single 2", "description": "Name of the second single. Add a link if an article exists", "example": "Blank Space", "type": "string", "suggested": true }, "single2date": { "aliases": [ "single 2 date", "Single 2 date" ], "label": "Single 2 date", "description": "Release date of the second single", "example": "November 10, 2014", "type": "date", "suggested": true }, "single3": { "aliases": [ "single 3", "Single 3" ], "label": "Single 3", "description": "Name of the third single. Add a link if an article exists", "example": "Style", "type": "string", "suggested": true }, "single3date": { "aliases": [ "single 3 date", "Single 3 date" ], "label": "Single 3 date", "description": "Release date of the third single", "example": "February 9, 2015", "type": "date", "suggested": true }, "single4": { "aliases": [ "single 4", "Single 4" ], "label": "Single 4", "description": "Name of the fourth single. Add a link if an article exists", "example": "Bad Blood", "type": "string", "suggested": true }, "single4date": { "aliases": [ "single 4 date", "Single 4 date" ], "label": "Single 4 date", "description": "Release date of the fourth single", "example": "May 17, 2015", "type": "date", "suggested": true }, "single5": { "aliases": [ "single 5", "Single 5" ], "label": "Single 5", "description": "Name of the fifth single. Add a link if an article exists", "example": "Wildest Dreams", "type": "string" }, "single5date": { "aliases": [ "single 5 date", "Single 5 date" ], "label": "Single 5 date", "description": "Release date of the fifth single", "example": "August 31, 2015", "type": "date" }, "single6": { "aliases": [ "single 6", "Single 6" ], "label": "Single 6", "description": "Name of the sixth single. Add a link if an article exists", "example": "Out of the Woods", "type": "string" }, "single6date": { "aliases": [ "single 6 date", "Single 6 date" ], "label": "Single 6 date", "description": "Release date of the sixth single", "example": "February 5, 2016", "type": "date" }, "single7": { "aliases": [ "single 7", "Single 7" ], "label": "Single 7", "description": "Name of the seventh single. Add a link if an article exists", "example": "New Romantics", "type": "string" }, "single7date": { "aliases": [ "single 7 date", "Single 7 date" ], "label": "Single 7 date", "description": "Release date of the seventh single", "example": "February 23, 2016", "type": "date" }, "single8": { "aliases": [ "single 8", "Single 8" ], "label": "Single 8", "description": "Name of the eighth single. Add a link if an article exists", "type": "string" }, "single8date": { "aliases": [ "single 8 date", "Single 8 date" ], "label": "Single 8 date", "description": "Release date of the eighth single", "type": "date" }, "single9": { "aliases": [ "single 9", "Single 9" ], "label": "Single 9", "description": "Name of the ninth single. Add a link if an article exists", "type": "string" }, "single9date": { "aliases": [ "single 9 date", "Single 9 date" ], "label": "Single 9 date", "description": "Release date of the ninth single", "type": "date" }, "single10": { "aliases": [ "single 10", "Single 10" ], "label": "Single 10", "description": "Name of the tenth single. Add a link if an article exists", "type": "string" }, "single10date": { "aliases": [ "single 10 date", "Single 10 date" ], "label": "Single 10 date", "description": "Release date of the tenth single", "type": "date" }, "single11": { "aliases": [ "single 11", "Single 11" ], "label": "Single 11", "description": "Name of the eleventh single. Add a link if an article exists", "type": "string" }, "single11date": { "aliases": [ "single 11 date", "Single 11 date" ], "label": "Single 11 date", "description": "Release date of the eleventh single", "type": "date" }, "single12": { "aliases": [ "single 12", "Single 12" ], "label": "Single 12", "description": "Name of the twelfth single. Add a link if an article exists", "type": "string" }, "single12date": { "aliases": [ "single 12 date", "Single 12 date" ], "label": "Single 12 date", "description": "Release date of the twelfth single", "type": "date" }, "single13": { "aliases": [ "single 13", "Single 13" ], "label": "Single 13", "description": "Name of the thirteenth single. Add a link if an article exists", "type": "string" }, "single13date": { "aliases": [ "single 13 date", "Single 13 date" ], "label": "Single 13 date", "description": "Release date of the thirteenth single", "type": "date" }, "single14": { "aliases": [ "single 14", "Single 14" ], "label": "Single 14", "description": "Name of the fourteenth single. Add a link if an article exists", "type": "string" }, "single14date": { "aliases": [ "single 14 date", "Single 14 date" ], "label": "Single 14 date", "description": "Release date of the fourteenth single", "type": "date" }, "single15": { "aliases": [ "single 15", "Single 15" ], "label": "Single 15", "description": "Name of the fifteenth single. Add a link if an article exists", "type": "string" }, "single15date": { "aliases": [ "single 15 date", "Single 15 date" ], "label": "Single 15 date", "description": "Release date of the fifteenth single", "type": "date" } },

"description": "For use with
Untitled
– adds a list of singles from a recording. If there are deprecated parameters, substitute the template and it will clean itself up.",

"paramOrder": [ "name", "type", "single1", "single1date", "single2", "single2date", "single3", "single3date", "single4", "single4date", "single5", "single5date", "single6", "single6date", "single7", "single7date", "single8", "single8date", "single9", "single9date", "single10", "single10date", "single11", "single11date", "single12", "single12date", "single13", "single13date", "single14", "single14date", "single15", "single15date" ], "format": "block" } </templatedata>