Jump to content

Template:Infobox musical instrument: Difference between revisions

From English Mippedia, general encyclopedia
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:
== Usage ==
<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;">
The '''Infobox musical instrument''' template is used to summarize key information about a musical instrument, including its classification and history.
   
{{#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>
}}


=== Syntax ===
{{#if: {{{Developed|}}}
<pre>
| <tr>
{{Infobox musical instrument
    <th class="infobox-label" style="vertical-align: top;">Developed</th>
| Name =
    <td class="infobox-data">{{{Developed}}}</td>
| image =
</tr>
| image_caption =  
| Classification =  
| Hornbostel_Sachs =  
| Developed =
| Playing_range =
| Related_instruments =
}}
}}
</pre>


=== Parameters ===
{{#if: {{{Playing_range|}}}
* '''Name''': The common name of the musical instrument (e.g., Guitar, Piano, Violin).
| <tr>
* '''image''': The filename of the image without the "File:" or "Image:" prefix.
    <th class="infobox-label" style="vertical-align: top;">Playing range</th>
* '''image_caption''': A brief, descriptive caption for the image.
    <td class="infobox-data">{{{Playing_range}}}</td>
* '''Classification''': The broad family the instrument belongs to (e.g., String instrument, Woodwind).
</tr>
* '''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.
{{#if: {{{Related_instruments|}}}
* '''Related_instruments''': Other instruments in the same family or sharing historical lineage.
| <tr>
    <th class="infobox-label" style="vertical-align: top;">Related instruments</th>
    <td class="infobox-data">{{{Related_instruments}}}</td>
</tr>
}}


<includeonly>
</table><noinclude>
{{Documentation}}
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</includeonly>
</noinclude>

Latest revision as of 20:31, 3 September 2026