Template:Instrument: Difference between revisions

From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Magent (talk | contribs)
Fix header: use (s/n X) instead of #X to avoid list parsing; remove redundant Known as row
Magent (talk | contribs)
Fix stray paragraph breaks in #if blocks; add space before (s/n) in header
Line 40: Line 40:
}}{| class="infobox" style="width: 300px; border: 1px solid #aaa; background: #f9f9f9; padding: 10px; margin: 0 0 1em 1em; float: right;"
}}{| 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}}} {{{model|}}}{{#if:{{{serial|}}}| (s/n {{{serial}}})}}|{{#if:{{{nickname|}}}|''{{{nickname}}}''}}}}
! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{make|}}}|{{{make}}} {{{model|}}}{{#if:{{{serial|}}}| (s/n {{{serial}}})}}|{{#if:{{{nickname|}}}|''{{{nickname}}}''}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-
{{!}} colspan="2" style="text-align: center; padding: 10px;" {{!}} [[File:{{{image}}}|280px]]
{{!}} colspan="2" style="text-align: center; padding: 10px;" {{!}} [[File:{{{image}}}|280px]]}}
}}
|-
|-
! style="text-align: right; padding: 3px; width: 40%;" | Type
! style="text-align: right; padding: 3px; width: 40%;" | Type
Line 51: Line 50:
{{!}}-
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Serial
! style="text-align: right; padding: 3px;" {{!}} Serial
{{!}} style="padding: 3px;" {{!}} {{{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}}}
{{!}} 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}}}
{{!}} style="padding: 3px;" {{!}} {{{current_owner}}}}}
}}
{{#if:{{{previous_owners|}}}|
{{#if:{{{previous_owners|}}}|
{{!}}-
{{!}}-
! 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="text-align: center; padding: 8px 3px 3px;" | [[Special:FormEdit/{{#switch:{{{type|}}}|Guitar=GuitarDetails|Banjo=BanjoDetails|InstrumentDetails}}/{{FULLPAGENAME}}|Add details & photos]]
| colspan="2" style="text-align: center; padding: 8px 3px 3px;" | [[Special:FormEdit/{{#switch:{{{type|}}}|Guitar=GuitarDetails|Banjo=BanjoDetails|InstrumentDetails}}/{{FULLPAGENAME}}|Add details & photos]]
|}
|}
[[Category:Instruments]][[Category:{{{type|Instrument}}}s]]</includeonly>
[[Category:Instruments]][[Category:{{{type|Instrument}}}s]]</includeonly>

Revision as of 22:38, 30 March 2026

Instrument Infobox

Base template for documenting individual instruments with semantic properties. Created via Form:Instrument, then use the type-specific details form to add specs, photos, and more.

Usage

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

Parameters

  • type - Instrument type (Guitar, Mandolin, Banjo, Fiddle, Bass, Dobro, etc.)
  • nickname - Nickname for the instrument (optional)
  • 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)