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 == | ||
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= | |type=Mandolin | ||
|image=Example.jpg | |image=Example.jpg | ||
|make= | |make=Gibson | ||
|model= | |model=F-5 | ||
|serial=123456 | |serial=123456 | ||
|year= | |year=1923 | ||
|current_owner=[[Some Person]] | |current_owner=[[Some Person]] | ||
|previous_owners=[[Person A]], [[Person B]] | |previous_owners=[[Person A]], [[Person B]] | ||
}} | }} | ||
</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) | ||
[[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|}}}| | ! 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;" | | | 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;" {{!}} | {{!}} 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;" {{!}} | {{!}} 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;" {{!}} | {{!}} 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}}} | ||
}} | }} | ||
|} | |} | ||
[[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)