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)
Create instrument infobox template with semantic properties (via create-page on MediaWiki MCP Server)
 
Magent (talk | contribs)
Switch to Lua module - Scribunto now working
Tag: Manual revert
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
== Instrument Infobox ==
== Instrument Infobox ==
Template for documenting individual instruments (guitars, mandolins, banjos, fiddles, etc.) 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.
 
Powered by [[Module:Instrument]] (Lua) for clean conditional rendering.


=== Usage ===
=== Usage ===
<pre>
<pre>
{{Instrument
{{Instrument
|type=Guitar
|type=Mandolin
|nickname=
|image=Example.jpg
|image=Example.jpg
|make=Martin
|make=Gibson
|model=D-28
|model=F-5
|serial=123456
|serial=123456
|year=1954
|year=1923
|current_owner=[[Some Person]]
|current_owner=[[Some Person]]
|previous_owners=[[Person A]], [[Person B]]
|previous_owners=[[Person A]], [[Person B]]
|top_wood=Adirondack Spruce
|body_shape=F-style
|back_sides_wood=Brazilian Rosewood
|top_wood=Spruce
|neck_wood=Mahogany
|back_sides_wood=Maple
|fingerboard_wood=Ebony
|electronics=K&amp;K Pure Mini
}}
}}
</pre>
</pre>
Line 24: Line 25:
=== 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 31: 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
* '''top_wood''' - Soundboard/top tonewood
* '''back_sides_wood''' - Back and sides tonewood
* '''back_sides_wood''' - Back and sides tonewood
* '''neck_wood''' - Neck wood
* '''neck_wood''' - Neck wood
* '''fingerboard_wood''' - Fingerboard wood
* '''fingerboard_wood''' - Fingerboard wood
* '''electronics''' - Pickup system if any
* '''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>{| class="infobox" style="width: 300px; border: 1px solid #aaa; background: #f9f9f9; padding: 10px; margin: 0 0 1em 1em; float: right;"
</noinclude><includeonly>{{#invoke:Instrument|infobox}}</includeonly>
|-
! colspan="2" style="background: #ccc; font-size: 1.1em; padding: 5px;" | {{#if:{{{make|}}}|[[Make::{{{make}}}]]}} {{#if:{{{model|}}}|[[Model::{{{model}}}]]}}
{{#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;" | [[Instrument type::{{{type|Guitar}}}]]
{{#if:{{{serial|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Serial
{{!}} style="padding: 3px;" {{!}} [[Serial::{{{serial}}}]]
}}
{{#if:{{{year|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Year
{{!}} style="padding: 3px;" {{!}} [[Year built::{{{year}}}]]
}}
{{#if:{{{current_owner|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Owner
{{!}} style="padding: 3px;" {{!}} [[Current owner::{{{current_owner}}}]]
}}
{{#if:{{{previous_owners|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Previous
{{!}} style="padding: 3px;" {{!}} {{{previous_owners}}}
}}
|-
! colspan="2" style="background: #ddd; padding: 3px;" | Tonewoods
{{#if:{{{top_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Top
{{!}} style="padding: 3px;" {{!}} [[Top wood::{{{top_wood}}}]]
}}
{{#if:{{{back_sides_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Back/Sides
{{!}} style="padding: 3px;" {{!}} [[Back and sides wood::{{{back_sides_wood}}}]]
}}
{{#if:{{{neck_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Neck
{{!}} style="padding: 3px;" {{!}} [[Neck wood::{{{neck_wood}}}]]
}}
{{#if:{{{fingerboard_wood|}}}|
{{!}}-
! style="text-align: right; padding: 3px;" {{!}} Fingerboard
{{!}} style="padding: 3px;" {{!}} [[Fingerboard wood::{{{fingerboard_wood}}}]]
}}
{{#if:{{{electronics|}}}|
{{!}}-
! colspan="2" style="background: #ddd; padding: 3px;" {{!}} Electronics
{{!}}-
{{!}} colspan="2" style="padding: 3px;" {{!}} [[Electronics::{{{electronics}}}]]
}}
|}
[[Category:Instruments]]</includeonly>

Latest revision as of 04:17, 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.

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