Template:Infobox musical instrument: Difference between revisions
Appearance
Created page with "== Usage == The '''Infobox musical instrument''' template is used to summarize key information about a musical instrument, including its classification and history. === Syntax === <pre> {{Infobox musical instrument | Name = | image = | image_caption = | Classification = | Hornbostel_Sachs = | Developed = | Playing_range = | Related_instruments = }} </pre> === Parameters === * '''Name''': The common name of the musical instrument (e.g., Guitar, Piano, Violin). *..." Tags: Mobile edit Mobile web edit |
No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
== | <table class="infobox" style="width: 22em; text-align: left; font-size: 88%; line-height: 1.5em; border: 1px solid #a2a9b1; background-color: #f8f9fa; padding: 5px;"> | ||
{{#if: {{{Name|}}} | |||
| <caption class="infobox-title" style="font-size: 125%; font-weight: bold; text-align: center; padding: 5px; background-color: #dcb37b; color: black;">{{{Name}}}</caption> | |||
}} | |||
{{#if: {{{image|}}} | |||
| <tr> | |||
<td colspan="2" style="text-align: center; padding: 10px;"> | |||
[[File:{{{image}}}|250px|center|alt={{{image_caption|}}}]] | |||
{{#if: {{{image_caption|}}} | |||
| <div style="font-size: 85%; line-height: 1.5em; padding-top: 5px;">{{{image_caption}}}</div> | |||
}} | |||
</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Classification|}}} | |||
| <tr> | |||
<th class="infobox-label" style="width: 40%; vertical-align: top;">Classification</th> | |||
<td class="infobox-data" style="width: 60%;">{{{Classification}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Hornbostel_Sachs|}}} | |||
| <tr> | |||
<th class="infobox-label" style="vertical-align: top;">[[Hornbostel–Sachs]]</th> | |||
<td class="infobox-data">{{{Hornbostel_Sachs}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Developed|}}} | |||
| <tr> | |||
{{ | <th class="infobox-label" style="vertical-align: top;">Developed</th> | ||
| | <td class="infobox-data">{{{Developed}}}</td> | ||
| | </tr> | ||
}} | }} | ||
== | {{#if: {{{Playing_range|}}} | ||
| <tr> | |||
<th class="infobox-label" style="vertical-align: top;">Playing range</th> | |||
<td class="infobox-data">{{{Playing_range}}}</td> | |||
</tr> | |||
}} | |||
{{#if: {{{Related_instruments|}}} | |||
| <tr> | |||
<th class="infobox-label" style="vertical-align: top;">Related instruments</th> | |||
<td class="infobox-data">{{{Related_instruments}}}</td> | |||
</tr> | |||
}} | |||
< | </table><noinclude> | ||
{{Documentation}} | |||
[[Category:Infobox templates]] | [[Category:Infobox templates]] | ||
</ | </noinclude> | ||
Latest revision as of 20:31, 3 September 2026
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Usage
[edit source]The Infobox musical instrument template is used to summarize key information about a musical instrument, including its classification and history.
Syntax
[edit source]{{Infobox musical instrument
| Name =
| image =
| image_caption =
| Classification =
| Hornbostel_Sachs =
| Developed =
| Playing_range =
| Related_instruments =
}}
Parameters
[edit source]- Name: The common name of the musical instrument (e.g., Guitar, Piano, Violin).
- image: The filename of the image without the "File:" or "Image:" prefix.
- image_caption: A brief, descriptive caption for the image.
- Classification: The broad family the instrument belongs to (e.g., String instrument, Woodwind).
- Hornbostel_Sachs: The numeric classification code based on the Hornbostel–Sachs system.
- Developed: The era, century, or specific date when the instrument was created or popularized.
- Playing_range: The span of notes the instrument is capable of producing.
- Related_instruments: Other instruments in the same family or sharing historical lineage.