Template:ShowInstrument: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time, and other traditional and public domain music
Jump to navigationJump to search
Revert to bare pipes - {{!}} broke File syntax entirely (via update-page on MediaWiki MCP Server) Tag: Manual revert |
Use x14px (height constraint) instead of 14px (width constraint) - tall instruments like banjo were disrupting line height (via update-page on MediaWiki MCP Server) |
||
| Line 14: | Line 14: | ||
* [[Template:MusicianInfo]] - Sets the '''Primary instrument''' property | * [[Template:MusicianInfo]] - Sets the '''Primary instrument''' property | ||
* [[Template:ThinkingEntityInfo]] - Shows instrument icon in infobox | * [[Template:ThinkingEntityInfo]] - Shows instrument icon in infobox | ||
</noinclude><includeonly>[[{{{1}}}|{{#rambutanplain:{{{1}}}}}]]{{#if:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide|default=}}|<span title="{{lc:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide}}}}">[[File:Instrument-icon-{{lc:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide}}}}.png| | </noinclude><includeonly>[[{{{1}}}|{{#rambutanplain:{{{1}}}}}]]{{#if:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide|default=}}|<span title="{{lc:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide}}}}">[[File:Instrument-icon-{{lc:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide}}}}.png|x14px|{{lc:{{#show:{{{1}}}|?Primary instrument|link=none|headers=hide}}}}|link=]]</span>}}</includeonly> | ||
Revision as of 10:31, 30 January 2026
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 [[{{{1}}}|{{{1}}}]] template).
See also
- Template:MusicianInfo - Sets the Primary instrument property
- Template:ThinkingEntityInfo - Shows instrument icon in infobox