Template:Instrument: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Create instrument infobox template with semantic properties (via create-page on MediaWiki MCP Server)
 
Refactor to use #set for silent property storage, remove guitar-specific tonewoods (moved to Template:Guitar) (via update-page on MediaWiki MCP Server)
 
Line 1: Line 1:
<noinclude>
<noinclude>
== Instrument Infobox ==
== Instrument Infobox ==
Template for documenting individual instruments (guitars, mandolins, banjos, fiddles, etc.) with semantic properties.
Base template for documenting individual instruments with semantic properties. For guitars specifically, use [[Template:Guitar]] which extends this with guitar-specific fields.


=== Usage ===
=== Usage ===
<pre>
<pre>
{{Instrument
{{Instrument
|type=Guitar
|type=Mandolin
|image=Example.jpg
|image=Example.jpg
|make=Martin
|make=Gibson
|model=D-28
|model=F-5
|serial=123456
|serial=123456
|year=1954
|year=1923
|current_owner=[[Some Person]]
|current_owner=[[Some Person]]
|previous_owners=[[Person A]], [[Person B]]
|previous_owners=[[Person A]], [[Person B]]
|top_wood=Adirondack Spruce
|back_sides_wood=Brazilian Rosewood
|neck_wood=Mahogany
|fingerboard_wood=Ebony
|electronics=K&amp;K Pure Mini
}}
}}
</pre>
</pre>
Line 31: Line 26:
* '''current_owner''' - Current owner (wiki link)
* '''current_owner''' - Current owner (wiki link)
* '''previous_owners''' - Previous owners (comma-separated wiki links)
* '''previous_owners''' - Previous owners (comma-separated wiki links)
* '''top_wood''' - Soundboard/top tonewood
* '''back_sides_wood''' - Back and sides tonewood
* '''neck_wood''' - Neck wood
* '''fingerboard_wood''' - Fingerboard wood
* '''electronics''' - Pickup system if any


[[Category:Templates]]
[[Category:Templates]]
</noinclude><includeonly>{| class="infobox" style="width: 300px; border: 1px solid #aaa; background: #f9f9f9; padding: 10px; margin: 0 0 1em 1em; float: right;"
</noinclude><includeonly>{{#set:
|Instrument type={{{type|Instrument}}}
|Make={{{make|}}}
|Model={{{model|}}}
|Serial={{{serial|}}}
|Year built={{{year|}}}
|Current owner={{{current_owner|}}}
}}{| class="infobox" style="width: 300px; border: 1px solid #aaa; background: #f9f9f9; padding: 10px; margin: 0 0 1em 1em; float: right;"
|-
|-
! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{make|}}}|[[Make::{{{make}}}]]}} {{#if:{{{model|}}}|[[Model::{{{model}}}]]}}
! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{make|}}}|{{{make}}}}} {{#if:{{{model|}}}|{{{model}}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-
Line 47: Line 44:
|-
|-
! style="text-align: right; padding: 3px; width: 40%;" | Type
! style="text-align: right; padding: 3px; width: 40%;" | Type
| style="padding: 3px;" | [[Instrument type::{{{type|Guitar}}}]]
| style="padding: 3px;" | {{{type|Instrument}}}
{{#if:{{{serial|}}}|
{{#if:{{{serial|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Serial
! style="text-align: right; padding: 3px;" {{!}} Serial
{{!}} style="padding: 3px;" {{!}} [[Serial::{{{serial}}}]]
{{!}} style="padding: 3px;" {{!}} {{{serial}}}
}}
}}
{{#if:{{{year|}}}|
{{#if:{{{year|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Year
! style="text-align: right; padding: 3px;" {{!}} Year
{{!}} style="padding: 3px;" {{!}} [[Year built::{{{year}}}]]
{{!}} style="padding: 3px;" {{!}} {{{year}}}
}}
}}
{{#if:{{{current_owner|}}}|
{{#if:{{{current_owner|}}}|
{{!}}-
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Owner
! style="text-align: right; padding: 3px;" {{!}} Owner
{{!}} style="padding: 3px;" {{!}} [[Current owner::{{{current_owner}}}]]
{{!}} style="padding: 3px;" {{!}} {{{current_owner}}}
}}
}}
{{#if:{{{previous_owners|}}}|
{{#if:{{{previous_owners|}}}|
Line 67: Line 64:
! style="text-align: right; padding: 3px;" {{!}} Previous
! style="text-align: right; padding: 3px;" {{!}} Previous
{{!}} style="padding: 3px;" {{!}} {{{previous_owners}}}
{{!}} style="padding: 3px;" {{!}} {{{previous_owners}}}
}}
|-
! colspan="2" style="background: #ddd; padding: 3px;" | Tonewoods
{{#if:{{{top_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Top
{{!}} style="padding: 3px;" {{!}} [[Top wood::{{{top_wood}}}]]
}}
{{#if:{{{back_sides_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Back/Sides
{{!}} style="padding: 3px;" {{!}} [[Back and sides wood::{{{back_sides_wood}}}]]
}}
{{#if:{{{neck_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Neck
{{!}} style="padding: 3px;" {{!}} [[Neck wood::{{{neck_wood}}}]]
}}
{{#if:{{{fingerboard_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Fingerboard
{{!}} style="padding: 3px;" {{!}} [[Fingerboard wood::{{{fingerboard_wood}}}]]
}}
{{#if:{{{electronics|}}}|
{{!}}-
! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Electronics
{{!}}-
{{!}} colspan="2" style="padding: 3px;" {{!}} [[Electronics::{{{electronics}}}]]
}}
}}
|}
|}
[[Category:Instruments]]</includeonly>
[[Category:Instruments]]</includeonly>

Latest revision as of 08:25, 23 December 2025

Instrument Infobox[edit]

Base template for documenting individual instruments with semantic properties. For guitars specifically, use Template:Guitar which extends this with guitar-specific fields.

Usage[edit]

{{Instrument
|type=Mandolin
|image=Example.jpg
|make=Gibson
|model=F-5
|serial=123456
|year=1923
|current_owner=[[Some Person]]
|previous_owners=[[Person A]], [[Person B]]
}}

Parameters[edit]

  • type - Instrument type (Guitar, Mandolin, Banjo, Fiddle, Bass, Dobro, etc.)
  • image - Main image filename
  • make - Manufacturer/luthier
  • model - Model name/number
  • serial - Serial number
  • year - Year built
  • current_owner - Current owner (wiki link)
  • previous_owners - Previous owners (comma-separated wiki links)