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
Refactor to use #set for silent property storage, remove guitar-specific tonewoods (moved to Template:Guitar) (via update-page on MediaWiki MCP Server) |
Add nickname, show in header, add type-routed details link (Guitar->GuitarDetails, Banjo->BanjoDetails, etc) |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
== Instrument Infobox == | == Instrument Infobox == | ||
Base template for documenting individual instruments with semantic properties. | 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 === | === Usage === | ||
| Line 7: | Line 7: | ||
{{Instrument | {{Instrument | ||
|type=Mandolin | |type=Mandolin | ||
|nickname= | |||
|image=Example.jpg | |image=Example.jpg | ||
|make=Gibson | |make=Gibson | ||
| Line 19: | Line 20: | ||
=== Parameters === | === Parameters === | ||
* '''type''' - Instrument type (Guitar, Mandolin, Banjo, Fiddle, Bass, Dobro, etc.) | * '''type''' - Instrument type (Guitar, Mandolin, Banjo, Fiddle, Bass, Dobro, etc.) | ||
* '''nickname''' - Nickname for the instrument (optional) | |||
* '''image''' - Main image filename | * '''image''' - Main image filename | ||
* '''make''' - Manufacturer/luthier | * '''make''' - Manufacturer/luthier | ||
| Line 30: | Line 32: | ||
</noinclude><includeonly>{{#set: | </noinclude><includeonly>{{#set: | ||
|Instrument type={{{type|Instrument}}} | |Instrument type={{{type|Instrument}}} | ||
|Nickname={{{nickname|}}} | |||
|Make={{{make|}}} | |Make={{{make|}}} | ||
|Model={{{model|}}} | |Model={{{model|}}} | ||
| Line 37: | 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}}}}} {{#if:{{{model|}}}|{{{model}}}}} | ! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{nickname|}}}|''{{{nickname}}}'' — }}{{#if:{{{make|}}}|{{{make}}}}} {{#if:{{{model|}}}|{{{model}}}}} | ||
{{#if:{{{image|}}}| | {{#if:{{{image|}}}| | ||
{{!}}- | {{!}}- | ||
| Line 65: | Line 68: | ||
{{!}} 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]] | |||
|} | |} | ||
[[Category:Instruments]]</includeonly> | [[Category:Instruments]][[Category:{{{type|Instrument}}}s]]</includeonly> | ||
Revision as of 19:00, 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)