แม่แบบ:กล่องข้อมูล ค่ายเพลง/doc

เพิ่มกล่องข้อมูลในหน้าบทความของค่ายเพลง โค้ดของแม่แบบควรอยู่ด้านบนสุดของหน้า ก่อนส่วนนำบทความ แต่อยู่ต่ำกว่าประกาศแก้ความกำกวม (ดู WP:WAI ด้วย)

**การใช้งาน**

**ตัวอย่างที่เติมไว้ล่วงหน้า**
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):

**ตัวอย่างว่างเปล่า**
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:

**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  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 .
 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  or Various, separated by using commas, Flatlist or Hlist.
 country : The single country of origin, such as United States or Turkey. 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 Noteslocation for details.
 website or url : Specifies official site of record label using URL, for example:   (concise)   (qualified)
Additional field not provided by default:
Be careful not to use small or  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.

**ตัวอย่าง**
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  . Doing so is not required (the founder 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), and status (because the company is neither inactive nor defunct, and currently unlikely to require the field in the near future).

**หมายเหตุ**
}

**หมวดหมู่**
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:- :หมวดหมู่:ค่ายเพลงแบ่งตามประเทศ- :Category:Record labels by parent- :Category:Record labels by year of establishment- :หมวดหมู่:ค่ายเพลงแบ่งตามประเภท
Plus one or more possible special case such as:- :Category:Audiophile record labels- :Category:Defunct record labels
** or if known :Category:Record labels by year of disestablishment- :Category:Record label distributors- :Category:Reissue record labels
And possibly more from:- :หมวดหมู่:ค่ายเพลง

**Microformat**

**ข้อมูลแม่แบบ**
{
	"params": {
			"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  if possible.",
			"example": "1887",
			"type": "date",
			"suggested": true
		},
		"defunct": {
			"label": "Defunct (date)",
			"description": "The year in which the record company was officially dissolved. Must have the  template.",
			"example": "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  template if there are more than one.",
			"example": "hlist|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  template so as to be printer-friendly.",
			"example": "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",
		"image_name",
		"image_caption",
		"url",
		"module"
	,
	"format": " ___________ = _\n\n"
}

**หมวดหมู่ติดตาม**
 หน้าที่ใช้กล่องข้อมูลค่ายเพลงที่มีพารามิเตอร์ที่ไม่รู้จัก

**ดูเพิ่ม**
 กล่องข้อมูล อัลบั้ม- กล่องข้อมูล นักดนตรี
** สำหรับศิลปิน วงดนตรี หรือกลุ่มบุคคล- WikiProject Music
** WikiProject Musicians