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
Add construction/tonewoods/specs/electronics fields to #set and infobox display |
Fix conditional rows: {{!}}- on same line as #if opening to prevent whitespace issues with skipped fields |
||
| Line 57: | Line 57: | ||
! style="text-align: right; padding: 3px; width: 40%;" | Type | ! style="text-align: right; padding: 3px; width: 40%;" | Type | ||
| style="padding: 3px;" | {{{type|Instrument}}} | | 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}}} | {{!}} 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;" {{!}} {{m|{{{current_owner}}}}} | {{!}} style="padding: 3px;" {{!}} {{m|{{{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}}}}} | ||
}} | |||
{{#if:{{{body_shape|}}}{{{top_wood|}}}{{{back_sides_wood|}}}| | {{#if:{{{body_shape|}}}{{{top_wood|}}}{{{back_sides_wood|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Construction | ! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Construction | ||
}} | }} | ||
{{#if:{{{body_shape|}}}| | {{#if:{{{body_shape|}}}|{{!}}- | ||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Body | ! style="text-align: right; padding: 3px;" {{!}} Body | ||
{{!}} style="padding: 3px;" {{!}} {{{body_shape}}} | {{!}} style="padding: 3px;" {{!}} {{{body_shape}}}}} | ||
}} | {{#if:{{{top_wood|}}}|{{!}}- | ||
{{#if:{{{top_wood|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Top | ! style="text-align: right; padding: 3px;" {{!}} Top | ||
{{!}} style="padding: 3px;" {{!}} {{{top_wood}}} | {{!}} style="padding: 3px;" {{!}} {{{top_wood}}}}} | ||
}} | {{#if:{{{back_sides_wood|}}}|{{!}}- | ||
{{#if:{{{back_sides_wood|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Back/Sides | ! style="text-align: right; padding: 3px;" {{!}} Back/Sides | ||
{{!}} style="padding: 3px;" {{!}} {{{back_sides_wood}}} | {{!}} style="padding: 3px;" {{!}} {{{back_sides_wood}}}}} | ||
}} | {{#if:{{{neck_wood|}}}|{{!}}- | ||
{{#if:{{{neck_wood|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Neck | ! style="text-align: right; padding: 3px;" {{!}} Neck | ||
{{!}} style="padding: 3px;" {{!}} {{{neck_wood}}} | {{!}} style="padding: 3px;" {{!}} {{{neck_wood}}}}} | ||
}} | {{#if:{{{fingerboard_wood|}}}|{{!}}- | ||
{{#if:{{{fingerboard_wood|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Fingerboard | ! style="text-align: right; padding: 3px;" {{!}} Fingerboard | ||
{{!}} style="padding: 3px;" {{!}} {{{fingerboard_wood}}} | {{!}} style="padding: 3px;" {{!}} {{{fingerboard_wood}}}}} | ||
}} | {{#if:{{{bridge_wood|}}}|{{!}}- | ||
{{#if:{{{bridge_wood|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Bridge | ! style="text-align: right; padding: 3px;" {{!}} Bridge | ||
{{!}} style="padding: 3px;" {{!}} {{{bridge_wood}}} | {{!}} style="padding: 3px;" {{!}} {{{bridge_wood}}}}} | ||
}} | |||
{{#if:{{{scale_length|}}}{{{nut_width|}}}{{{strings|}}}| | {{#if:{{{scale_length|}}}{{{nut_width|}}}{{{strings|}}}| | ||
{{!}}- | {{!}}- | ||
! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Specifications | ! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Specifications | ||
}} | }} | ||
{{#if:{{{scale_length|}}}| | {{#if:{{{scale_length|}}}|{{!}}- | ||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Scale | ! style="text-align: right; padding: 3px;" {{!}} Scale | ||
{{!}} style="padding: 3px;" {{!}} {{{scale_length}}} | {{!}} style="padding: 3px;" {{!}} {{{scale_length}}}}} | ||
}} | {{#if:{{{nut_width|}}}|{{!}}- | ||
{{#if:{{{nut_width|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Nut Width | ! style="text-align: right; padding: 3px;" {{!}} Nut Width | ||
{{!}} style="padding: 3px;" {{!}} {{{nut_width}}} | {{!}} style="padding: 3px;" {{!}} {{{nut_width}}}}} | ||
}} | {{#if:{{{strings|}}}|{{!}}- | ||
{{#if:{{{strings|}}}| | |||
{{!}}- | |||
! style="text-align: right; padding: 3px;" {{!}} Strings | ! style="text-align: right; padding: 3px;" {{!}} Strings | ||
{{!}} style="padding: 3px;" {{!}} {{{strings}}} | {{!}} style="padding: 3px;" {{!}} {{{strings}}}}} | ||
}} | |||
{{#if:{{{electronics|}}}| | {{#if:{{{electronics|}}}| | ||
{{!}}- | {{!}}- | ||
Revision as of 02:02, 31 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)