Template:Infobox instrument/doc

Code


Usage
This template, meant to be used on all musical instrument pages, takes the following parameters (bold parameters are required, others are optional):

TemplateData
{	"description": "An infobox for articles about musical instruments", "params": { "name": { "label": "Name", "description": "The name of the instrument", "type": "string", "required": false },		"image": { "label": "Image", "description": "The file name for an image of the instrument", "type": "wiki-file-name", "required": false },		"caption": { "label": "Caption", "description": "An description of the image", "type": "string", "required": false, "aliases": [ "image_capt" ]		},		"background": { "label": "Background", "description": "The general classification of the instrument ('keyboard', 'woodwind', 'brass', 'string', 'percussion', 'electronic', or 'other') used to choose the color scheme of the infobox and populate a simple classification link-header below the image caption", "type": "line", "required": false, "suggestedvalues": [ "keyboard", "woodwind", "brass", "string", "percussion", "electronic", "other" ]		},		"names": { "label": "Names", "description": "Alternative names for the instrument", "type": "string", "required": false },		"classification": { "label": "Classification", "description": "The general classification of the instrument - Idiophone, Membranophone, Chordophone, Aerophone, Electrophone", "type": "string", "required": false },		"inventors": { "label": "Inventors", "description": "The inventor(s) of the instrument, if known", "type": "string", "required": false },		"pitch": { "label": "Pitch", "description": "The playing range of the instrument, without image: 'low', 'medium', 'high'", "type": "string", "required": false, "suggestedvalues": [ "low", "medium", "high" ]		},		"related": { "label": "Related", "description": "Related musical instruments", "type": "string", "required": false },		"musicians": { "label": "Musicians", "description": "Notable musicians", "type": "string", "required": false },		"composers": { "label": "Composers", "description": "Notable composers", "type": "string", "required": false },		"builders": { "label": "Builders", "description": "Notable music instrument makers", "type": "string", "required": false },		"sound sample": { "label": "Sound sample", "description": "Notable sample", "type": "string", "required": false },		"developed": { "label": "Developed", "description": "The rough time period (and instrument from which) the instrument was developed (e.g. 'Early 16th century' for the violin, 'Early 18th century from the chalumeau' for the clarinet, etc.)", "type": "string", "required": false },		"timbre": { "label": "Timbre", "description": "The sound quality of the instrument", "type": "string", "required": false },		"volume": { "label": "Volume", "description": "How loud the instrument is - 'low', 'medium', 'high'", "type": "string", "required": false, "suggestedvalues": [ "low", "medium", "high" ]		},		"attack": { "label": "Attack", "description": "How quickly the instrument begins making sound when it starts being played - 'slow', 'medium', 'fast'", "type": "string", "required": false, "suggestedvalues": [ "slow", "medium", "fast" ]		},		"decay": { "label": "Decay", "description": "How long the sound fades after the instrument stops being played: 'slow', 'medium', 'fast'", "type": "string", "required": false, "suggestedvalues": [ "slow", "medium", "fast" ]		},		"range": { "label": "Range", "description": "The playing range of the instrument (an image is preferred, many are already created, see commons:Category:Instrument ranges')", "type": "string", "required": false },		"articles": { "label": "Articles", "description": "Other articles which may be of interest or more information", "type": "string", "required": false },		"image_size": { "label": "Image size", "description": "Size of the image", "type": "number" },		"alt": { "label": "Image alt text", "description": "Alt text for the image, for visually impaired and other readers who cannot see the image.", "type": "string" },		"hornbostel_sachs": { "label": "Hornbostel-Sachs", "description": "The Hornbostel-Sachs number of the instrument ", "type": "string" },		"hornbostel_sachs_desc": { "label": "Hornbostel-Sachs Description", "description": "The name of the Hornbostel-Sachs subcategory of the instrument ", "type": "string" }	},	"paramOrder": [ "name", "background", "image", "image_size", "alt", "caption", "names", "classification", "hornbostel_sachs", "hornbostel_sachs_desc", "inventors", "developed", "timbre", "volume", "attack", "decay", "range", "pitch", "related", "musicians", "composers", "builders", "sound sample", "articles" ],	"format": "\n" }