|
|
| (6 intermediate revisions by the same user not shown) |
| Line 2: |
Line 2: |
| == Instrument Infobox == | | == 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. | | 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. |
| | |
| | Powered by [[Module:Instrument]] (Lua) for clean conditional rendering. |
|
| |
|
| === Usage === | | === Usage === |
| Line 15: |
Line 17: |
| |current_owner=[[Some Person]] | | |current_owner=[[Some Person]] |
| |previous_owners=[[Person A]], [[Person B]] | | |previous_owners=[[Person A]], [[Person B]] |
| | |body_shape=F-style |
| | |top_wood=Spruce |
| | |back_sides_wood=Maple |
| }} | | }} |
| </pre> | | </pre> |
| Line 28: |
Line 33: |
| * '''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) |
| | * '''body_shape''' - Body shape/style |
| | * '''top_wood''' - Soundboard/top tonewood |
| | * '''back_sides_wood''' - Back and sides tonewood |
| | * '''neck_wood''' - Neck wood |
| | * '''fingerboard_wood''' - Fingerboard wood |
| | * '''bridge_wood''' - Bridge wood |
| | * '''scale_length''' - Scale length |
| | * '''nut_width''' - Nut width |
| | * '''strings''' - Number of strings |
| | * '''electronics''' - Pickup system |
|
| |
|
| [[Category:Templates]] | | [[Category:Templates]] |
| </noinclude><includeonly>{{#set: | | </noinclude><includeonly>{{#invoke:Instrument|infobox}}</includeonly> |
| |Instrument type={{{type|Instrument}}}
| |
| |Nickname={{{nickname|}}}
| |
| |Make={{{make|}}}
| |
| |Model={{{model|}}}
| |
| |Serial={{{serial|}}}
| |
| |Year built={{{year|}}}
| |
| |Current owner={{{current_owner|}}}
| |
| |Body shape={{{body_shape|}}}
| |
| |Top wood={{{top_wood|}}}
| |
| |Back and sides wood={{{back_sides_wood|}}}
| |
| |Neck wood={{{neck_wood|}}}
| |
| |Fingerboard wood={{{fingerboard_wood|}}}
| |
| |Bridge wood={{{bridge_wood|}}}
| |
| |Scale length={{{scale_length|}}} | |
| |Nut width={{{nut_width|}}}
| |
| |Number of strings={{{strings|}}}
| |
| |Electronics={{{electronics|}}}
| |
| }}{| 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}}}''}}}}
| |
| {{#if:{{{image|}}}|
| |
| {{!}}-
| |
| {{!}} colspan="2" style="text-align: center; padding: 10px;" {{!}} [[File:{{{image}}}|280px]]}}
| |
| |-
| |
| ! style="text-align: right; padding: 3px; width: 40%;" | Type
| |
| | style="padding: 3px;" | {{{type|Instrument}}}
| |
| {{#if:{{{serial|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Serial
| |
| {{!}} style="padding: 3px;" {{!}} {{{serial}}}}}
| |
| {{#if:{{{year|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Year
| |
| {{!}} style="padding: 3px;" {{!}} {{{year}}}}}
| |
| {{#if:{{{current_owner|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Owner
| |
| {{!}} style="padding: 3px;" {{!}} {{m|{{{current_owner}}}}}}}
| |
| {{#if:{{{previous_owners|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Previous
| |
| {{!}} style="padding: 3px;" {{!}} {{{previous_owners}}}}}
| |
| {{#if:{{{body_shape|}}}{{{top_wood|}}}{{{back_sides_wood|}}}|
| |
| {{!}}-
| |
| ! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Construction
| |
| }}
| |
| {{#if:{{{body_shape|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Body
| |
| {{!}} style="padding: 3px;" {{!}} {{{body_shape}}}}}
| |
| {{#if:{{{top_wood|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Top
| |
| {{!}} style="padding: 3px;" {{!}} {{{top_wood}}}}}
| |
| {{#if:{{{back_sides_wood|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Back/Sides
| |
| {{!}} style="padding: 3px;" {{!}} {{{back_sides_wood}}}}}
| |
| {{#if:{{{neck_wood|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Neck
| |
| {{!}} style="padding: 3px;" {{!}} {{{neck_wood}}}}}
| |
| {{#if:{{{fingerboard_wood|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Fingerboard
| |
| {{!}} style="padding: 3px;" {{!}} {{{fingerboard_wood}}}}}
| |
| {{#if:{{{bridge_wood|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Bridge
| |
| {{!}} style="padding: 3px;" {{!}} {{{bridge_wood}}}}}
| |
| {{#if:{{{scale_length|}}}{{{nut_width|}}}{{{strings|}}}|
| |
| {{!}}-
| |
| ! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Specifications
| |
| }}
| |
| {{#if:{{{scale_length|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Scale
| |
| {{!}} style="padding: 3px;" {{!}} {{{scale_length}}}}}
| |
| {{#if:{{{nut_width|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Nut Width
| |
| {{!}} style="padding: 3px;" {{!}} {{{nut_width}}}}}
| |
| {{#if:{{{strings|}}}|{{!}}-
| |
| ! style="text-align: right; padding: 3px;" {{!}} Strings
| |
| {{!}} style="padding: 3px;" {{!}} {{{strings}}}}}
| |
| {{#if:{{{electronics|}}}|
| |
| {{!}}-
| |
| ! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Electronics
| |
| {{!}}-
| |
| {{!}} colspan="2" style="padding: 3px;" {{!}} {{{electronics}}}
| |
| }}
| |
| |-
| |
| | colspan="2" style="text-align: center; padding: 8px 3px 3px;" | [[Special:FormEdit/{{#switch:{{{type|}}}|Guitar=GuitarDetails|Banjo=BanjoDetails|Mandolin=MandolinDetails|InstrumentDetails}}/{{FULLPAGENAME}}|Add details & photos]]
| |
| |}
| |
| [[Category:Instruments]][[Category:{{{type|Instrument}}}s]]</includeonly>
| |
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.
Powered by Module:Instrument (Lua) for clean conditional rendering.
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]]
|body_shape=F-style
|top_wood=Spruce
|back_sides_wood=Maple
}}
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)
- body_shape - Body shape/style
- top_wood - Soundboard/top tonewood
- back_sides_wood - Back and sides tonewood
- neck_wood - Neck wood
- fingerboard_wood - Fingerboard wood
- bridge_wood - Bridge wood
- scale_length - Scale length
- nut_width - Nut width
- strings - Number of strings
- electronics - Pickup system