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)
Serial in header: #N if numeric, plain text otherwise, no parens
Magent (talk | contribs)
Use HTML entity # for hash to avoid wikitext list parsing
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|}}}| {{#iferror:{{#expr:{{{serial}}}}}|{{{serial}}}|#{{{serial}}}}}}}|{{#if:{{{nickname|}}}|''{{{nickname}}}''}}}}
! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{make|}}}|{{{make}}} {{{model|}}}{{#if:{{{serial|}}}| {{#iferror:{{#expr:{{{serial}}}}}|{{{serial}}}|#{{{serial}}}}}}}|{{#if:{{{nickname|}}}|''{{{nickname}}}''}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{!}}-
{{!}}-

Revision as of 23:16, 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)