Template:ShowInstrument
From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Inline template for linking to a musician with their instrument icon. Queries the musician's Primary instrument semantic property and displays a small icon with a tooltip.
Usage
{{ShowInstrument|Cory Walker}}
Outputs: a link to the musician's page, followed by a small instrument icon with tooltip (if they have a primary instrument set).
If the musician has no instrument set, it falls back to a plain link (same as the old {{#vardefine:inst|}}[[{{{1}}}|{{{1}}}]] [[File:Instrument-icon-{{#var:inst}}.png|22px|{{#var:inst}}|link=]] template).
See also
- Template:MusicianInfo - Sets the Primary instrument property
- Template:ThinkingEntityInfo - Shows instrument icon in infobox