Template:Infobox record label: Difference between revisions
BalkanMapper (talk | contribs) m (1 revision imported) |
BalkanMapper (talk | contribs) No edit summary |
||
Line 33: | Line 33: | ||
| data11 = {{{misc|{{{module|}}}}}} | | data11 = {{{misc|{{{module|}}}}}} | ||
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox record label with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox record label]] with unknown parameter "_VALUE_"|ignoreblank=y| bgcolor | caption | country | defunct | distributor | founded | founder | slogan | genre | image | image_alt | image_caption | image_name | image_size | location | name | parent | status | url | website | misc | module}}<noinclude>{{Documentation}}</noinclude> | }}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox record label with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox record label]] with unknown parameter "_VALUE_"|ignoreblank=y| bgcolor | caption | country | defunct | distributor | founded | founder | slogan | genre | image | image_alt | image_caption | image_name | image_size | location | name | parent | status | url | website | misc | module}}<noinclude>{{Documentation}}<templatedata> | ||
{ | |||
"params": { | |||
"bgcolor": { | |||
"label": "Background color", | |||
"description": "Used to change the background color. It is not required and recommended UNLESS a logical and justified reason is given.", | |||
"type": "line", | |||
"default": "lightblue", | |||
"deprecated": true | |||
}, | |||
"name": { | |||
"label": "Name", | |||
"description": "The name of the record label. Must not be linked or formatted.", | |||
"example": "Modular Recordings", | |||
"type": "string", | |||
"required": true, | |||
"suggested": true | |||
}, | |||
"image": { | |||
"description": "The logo image for the record label.", | |||
"type": "wiki-file-name", | |||
"label": "Image" | |||
}, | |||
"image_name": { | |||
"deprecated": "Use \"image\"" | |||
}, | |||
"image_size": { | |||
"label": "Image size", | |||
"description": "The size of the image. \\\"px\\\" must not be added; only the numerical value given.", | |||
"example": "220", | |||
"type": "number" | |||
}, | |||
"image_alt": { | |||
"label": "Image alt text", | |||
"description": "Alternative text used to describe the image given for visually-impaired readers.", | |||
"type": "line" | |||
}, | |||
"caption": { | |||
"label": "Image caption", | |||
"description": "A caption for the image.", | |||
"example": "The official logo for Big Beat Records.", | |||
"type": "string" | |||
}, | |||
"image_caption": { | |||
"deprecated": "Use \"caption\"" | |||
}, | |||
"parent": { | |||
"label": "Parent company", | |||
"description": "The parent company that owns the record label. Must be linked and have its own separate article.", | |||
"example": "[[Sony Music Entertainment]]", | |||
"type": "string" | |||
}, | |||
"founded": { | |||
"label": "Founded (date)", | |||
"description": "The foundation year in which the record label was established. Must only be the year and must use the {{start date and age}} if possible.", | |||
"example": "{{start date and age|1887}}", | |||
"type": "date", | |||
"suggested": true | |||
}, | |||
"defunct": { | |||
"label": "Defunct (date)", | |||
"description": "The year in which the record company was officially dissolved. Must have the {{end date}} template.", | |||
"example": "{{end date|1953}}", | |||
"type": "date" | |||
}, | |||
"founder": { | |||
"label": "Founder", | |||
"description": "The person or people who founded the company. If possible, must be linked to its article.", | |||
"example": "[[Pete Doraine]]", | |||
"type": "string" | |||
}, | |||
"slogan": { | |||
"label": "Slogan", | |||
"type": "string", | |||
"description": "Slogan of the label.", | |||
"example": "\"For the music!\"" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"description": "The current status of the company. Defunct, Inactive or leave blank.", | |||
"type": "line", | |||
"example": "Defunct", | |||
"autovalue": "", | |||
"suggestedvalues": [ | |||
"Defunct", | |||
"Inactive" | |||
] | |||
}, | |||
"distributor": { | |||
"label": "Distributor", | |||
"description": "The company or companies that distribute the licensed work of the company. If possible, must be linked to its article.", | |||
"example": "[[Sony Music]]", | |||
"type": "string" | |||
}, | |||
"genre": { | |||
"label": "Genre", | |||
"description": "The genre(s) that are most common for the record label. Must be used with the {{hlist}} template if there are more than one.", | |||
"example": "{{hlist|[[Rock music|Rock]]|[[electronica]]|[[electropop]]|[[neo-psychedelia]]|[[psychedelic rock]]}}", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"country": { | |||
"label": "Country of origin", | |||
"description": "The record label's country of origin, where it is headquartered. The country MUST NOT be linked.", | |||
"example": "Japan", | |||
"type": "string" | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"description": "The official city in which the record label is headquartered in it's country of origin. The exact address is NOT ALLOWED as only the city is.", | |||
"example": "[[Dortmund]]", | |||
"type": "string" | |||
}, | |||
"website": { | |||
"label": "Website", | |||
"description": "The official website for the record label. It must be used in accordance with the {{URL}} template so as to be printer-friendly.", | |||
"example": "{{URL|defjam.com}}", | |||
"type": "string" | |||
}, | |||
"url": { | |||
"deprecated": "Use \"website\"" | |||
}, | |||
"misc": { | |||
"label": "Misc", | |||
"description": "For additional modules if needed.", | |||
"type": "string" | |||
}, | |||
"module": { | |||
"deprecated": "Use \"misc\"" | |||
} | |||
}, | |||
"description": "An infobox used to describe a record label, it's general and corporate information, as well as location and official website", | |||
"paramOrder": [ | |||
"name", | |||
"image", | |||
"image_size", | |||
"image_alt", | |||
"caption", | |||
"parent", | |||
"founded", | |||
"defunct", | |||
"founder", | |||
"status", | |||
"distributor", | |||
"genre", | |||
"country", | |||
"location", | |||
"website", | |||
"misc", | |||
"slogan", | |||
"bgcolor", | |||
"image_name", | |||
"image_caption", | |||
"url", | |||
"module" | |||
], | |||
"format": "{{_\n| ___________ = _\n}}\n" | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 18:12, 14 July 2023
File:Lua-Logo.svg | This template uses Lua: |
Usage
{{{name}}} | |
---|---|
[[File:{{{image}}}|{{{image_size}}}|alt={{{image_alt}}}]] | |
Parent company | {{{parent}}} |
Founded | {{{founded}}} |
Founder | {{{founder}}} |
Defunct | {{{defunct}}} |
Status | {{{status}}} |
Distributor(s) | {{{distributor}}} |
Genre | {{{genre}}} |
Country of origin | {{{country}}} |
Location | {{{location}}} |
Official website | {{{website}}} |
{{{misc}}} | |
Slogan | {{{slogan}}} |
{{Infobox record label}}
adds an infobox to the article page of a record label. The template's code should go at the top of the page, before the article lead section, but below disambiguation notices (see also WP:WAI).
Pre-filled sample
For simple use, you can directly cut-n-paste the sample code below (filling in the relevant fields, deleting the irrelevant fields, and leaving out with their self-documentation comments the fields you don't know or that can be used later):
{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->
| name = <!-- "label name" displayed in box title, defaults to page title -->
| image = <!-- logo, such as "LABEL-LOGO.svg" -->
| image_size = <!-- size -->
| image_alt = <!-- WP:ALT text describing the image -->
| caption = <!-- a caption for the image -->
| parent = <!-- parent company, such as "[[Warner Music Group]]" -->
| founded = <!-- year of foundation, such as {{start date|1950}} -->
| founder = <!-- name of founders, separated by using commas, {{Flatlist}} or {{Hlist}} -->
| defunct = <!-- year the label dissolved, such as {{end date|1990}} -->
| slogan = <!-- advertising slogan or "motto" of the label, if any -->
| status = <!-- leave blank unless "Inactive" -->
| distributor = <!-- distributors, separated by using commas, {{Flatlist}} or {{Hlist}} -->
| genre = <!-- such as "[[World music|World]]" or "Various", separated by using commas, {{Flatlist}} or {{Hlist}} -->
| country = <!-- origin, such as "United States" or "Turkey" -->
| location = <!-- headquarters city and state -->
| website = <!-- such as "{{URL|www.atlanticrecords.com}}" -->
}}
Empty sample
If you already know exactly what goes into each field, this version too can be cut-n-pasted directly into your article and filled on the spot, without having to delete the helper comments as you fill it:
{{Infobox record label <!-- See Wikipedia:WikiProject_Music -->
| name =
| image =
| image_size =
| image_alt =
| caption =
| parent =
| founded = <!-- {{Start date|YYYY}} -->
| founder =
| slogan =
| defunct = <!-- {{End date|YYYY}} -->
| status =
| distributor =
| genre =
| country =
| location =
| website = <!-- {{URL|example.com}} -->
}}
Fields
All fields are currently optional (in that not filling them won't cause a display error), but it is recommended to try and fill as much as possible within sourced information, especially founded
and country
. An empty {{Infobox record label}} will generate only the blue heading with the name of the article.
- name
- (Defaults to article name.) Label name displayed in infobox title.
- image
- Label logo, such as
LABEL-LOGO.jpg
. - image_size
- preferably between 100 pixels and 200 pixels wide, depending on its portrait or landscape orientation—default is 180px.
- image_alt
- alternative text which describes the image
- caption
- a caption for the image
- parent
- Parent company, such as
[[Warner Music Group]]
. - founded
- Foundation year, just 4 digits, such as "1950", using {{Start date}}
- founder
- Name of founders, separated by using commas, {{Flatlist}} or {{Hlist}}.
- slogan
- If the label had a catch phrase, slogan or motto, list it here
- defunct
- Dissolved year, just 4 digits, such as "1990", using {{end date}}
- status
- Leave blank unless
Inactive
. - distributor
- Distributors, separated by using commas, {{Flatlist}} or {{Hlist}}.
- genre
- Such as
[[World music|World]]
orVarious
, separated by using commas, {{Flatlist}} or {{Hlist}}. - country
- The single country of origin, such as
United States
orTurkey
. Do not use abbreviations unless absolutely necessary. Do not use flags per WP:INFOBOXFLAG. - location
- Headquarters city and state or province. Abbreviations, such as "MA" for "Massachusetts", "ON" for "Ontario", etc., should never be used. See Notes[1] for details.
- website or url
- Specifies official site of record label using {{[[Template:URL|URL}}, for example:
{{URL|www.atlanticrecords.com}}
(concise)
{{URL|www.kalan.com/english/scripts|Kalan.com}}
(qualified)
Additional field not provided by default:
- bgcolor
- (Deprecated, defaults to "LightBlue".) Background color for box title, not to be used unless justified need.
Be careful not to use {{small}} or <small> markup in the infobox as infoboxes already use smaller text than the article body and when the font is made too small it is difficult for those with accessibility needs to read.
Example
Republic Records | |
---|---|
File:Wikipedia-logo-v2-en.svg | |
Parent company | Universal Music Group |
Founded | 1995 |
Founder |
|
Distributor(s) |
|
Genre | Various |
Country of origin | United States |
Location | New York City |
Official website | www |
{{Infobox record label
| name = Republic Records
| image_name = Wikipedia-logo-v2-en.svg
| image_size = 100px
| parent = [[Universal Music Group]]
| founded = {{Start date|1995}}
| founder = {{hlist| [[Monte Lipman]] | Avery Lipman }}
| distributor = {{hlist| Universal Music Group (Worldwide) | [[Virgin EMI Records]] (in the UK) }}
| genre = Various
| country = United States
| location = New York City
| website = {{URL|www.republicrecords.com}}
}}
The above template code example produces the infobox displayed at right.
- The actual logo is not displayed on this documentation page because of fair-use limitations (it can be used only to illustrate the article about it). A Wikipedia logo is used here to demonstrate logo use and placement.
- Notice in the
distributor
field how you can go to a new line for a sub-item by hiding the newline in the middle of the<br />
. Doing so is not required (thefounder
field doesn't use it), and neither version affects the output, but it can make the wikicode more readable and editable with long sub-items. - Two fields have been omitted in this example:
bgcolor
(because the default white color is to be used here), andstatus
(because the company is neither inactive nor defunct, and currently unlikely to require the field in the near future).
Notes
- ↑ As per RfC "Naming countries in infoboxes": When identifying a location, city or region in the United States or United Kingdom, the preferred approach is to use the country abbreviations allowed by MOS:ACRO, such as "Portsmouth, New Hampshire, U.S." and "Cardiff, Wales, UK", rather than spelling out the full country name. Avoid using abbreviations for states or provinces in all nations. New Hampshire rather than NH, New South Wales rather than NSW, or British Columbia rather than BC (see MOS:POSTABBR). Cities such as New York City and London may be rendered as "New York City, U.S." and "London, UK" or simply "New York City" and "London". Also, these should not be linked when the context makes it clear (see MOS:OVERLINK). If only the country name is included, it may be written out in full.
Categories
The template does not create any automatic categorization of the article. You have to add your article to the relevant categories. Suggested categories (and their subcategories) to investigate include:
- One from Category:Record labels by country
- One from Category:Record labels by parent
- One from Category:Record labels by year of establishment
- One or more from Category:Record labels by genre
Plus one or more possible special case such as:
- Category:Audiophile record labels
- Category:Defunct record labels
- Category:Record label distributors
- Category:Reissue record labels
And possibly more from:
Microformat
The HTML mark-up produced by this template includes an hCard microformat that makes an organization's details readily parsable by computer programs. This aids tasks such as the cataloguing of articles and maintenance of databases. For more information about the use of microformats on Wikipedia, please visit the Microformat WikiProject.- Subtemplates
- Use {{Start date and age}} for the date on which an organisation was "established", "founded", "opened" or otherwise started, unless that date is before 1583 CE.
- Use {{URL}} for an organisation's URL.
Please do not remove instances of these subtemplates.
- Classes used
The HTML classes of this microformat include:
- adr
- agent
- category
- country-name
- extended-address
- fn
- geo
- label
- latitude
- locality
- longitude
- nickname
- note
- org
- region
- street-address
- url
- vcard
nor collapse nested elements which use them.
TemplateData
TemplateData documentation used by VisualEditor and other tools
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
See a monthly parameter usage report for Template:Infobox record label in articles based on its TemplateData.
TemplateData for Infobox record label An infobox used to describe a record label, it's general and corporate information, as well as location and official website
|
Tracking category
See also
- Template:Infobox album(edit talk links history)
- Template:Infobox musical artist(edit talk links history)
- for individual artists, bands or collectives
- WikiProject Music
An infobox used to describe a record label, it's general and corporate information, as well as location and official website
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The name of the record label. Must not be linked or formatted.
| String | required |
Image | image | The logo image for the record label. | File | optional |
Image size | image_size | The size of the image. \"px\" must not be added; only the numerical value given.
| Number | optional |
Image alt text | image_alt | Alternative text used to describe the image given for visually-impaired readers. | Line | optional |
Image caption | caption | A caption for the image.
| String | optional |
Parent company | parent | The parent company that owns the record label. Must be linked and have its own separate article.
| String | optional |
Founded (date) | founded | The foundation year in which the record label was established. Must only be the year and must use the {{start date and age}} if possible.
| Date | suggested |
Defunct (date) | defunct | The year in which the record company was officially dissolved. Must have the {{end date}} template.
| Date | optional |
Founder | founder | The person or people who founded the company. If possible, must be linked to its article.
| String | optional |
Status | status | The current status of the company. Defunct, Inactive or leave blank.
| Line | optional |
Distributor | distributor | The company or companies that distribute the licensed work of the company. If possible, must be linked to its article.
| String | optional |
Genre | genre | The genre(s) that are most common for the record label. Must be used with the {{hlist}} template if there are more than one.
| String | suggested |
Country of origin | country | The record label's country of origin, where it is headquartered. The country MUST NOT be linked.
| String | optional |
Location | location | The official city in which the record label is headquartered in it's country of origin. The exact address is NOT ALLOWED as only the city is.
| String | optional |
Website | website | The official website for the record label. It must be used in accordance with the {{URL}} template so as to be printer-friendly.
| String | optional |
Misc | misc | For additional modules if needed. | String | optional |
Slogan | slogan | Slogan of the label.
| String | optional |
Background color | bgcolor | Used to change the background color. It is not required and recommended UNLESS a logical and justified reason is given.
| Line | deprecated |
image_name | image_name | no description | Unknown | deprecated |
image_caption | image_caption | no description | Unknown | deprecated |
url | url | no description | Unknown | deprecated |
module | module | no description | Unknown | deprecated |