Template:Infobox musical instrument: Difference between revisions
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> | ||