Template:Ensemble: Difference between revisions
From PickiPedia: A knowledge base of bluegrass, old time psychedelic jams, and other public domain music
Jump to navigationJump to search
Simplified syntax - now uses Name:instrument,role format (via update-page on MediaWiki MCP Server) |
Simplified to use Em sub-template - works without #explode (via update-page on MediaWiki MCP Server) |
||
| Line 2: | Line 2: | ||
'''Ensemble''' - Infobox template for listing musicians on a show or record page. | '''Ensemble''' - Infobox template for listing musicians on a show or record page. | ||
Uses {{tl| | Uses {{tl|Em}} to display each musician with their instrument icon. If no instrument is specified, the musician's '''Primary instrument''' SMW property is used. | ||
== Usage == | == Usage == | ||
<pre> | <pre> | ||
{{Ensemble | {{Ensemble | ||
|Bronwyn Keith-Hynes | |{{Em|Bronwyn Keith-Hynes}} | ||
|Jason Carter | |{{Em|Jason Carter}} | ||
|Fil Pate | |{{Em|Fil Pate|banjo|guest}} | ||
|Frank Evans | |{{Em|Frank Evans||sit-in}} | ||
}} | }} | ||
</pre> | </pre> | ||
=== Syntax === | === {{tl|Em}} Syntax === | ||
* <code><nowiki>{{Em|Name}}</nowiki></code> - Uses their primary instrument | |||
* | * <code><nowiki>{{Em|Name|instrument}}</nowiki></code> - Override the instrument | ||
* | * <code><nowiki>{{Em|Name|instrument|role}}</nowiki></code> - Override instrument and add a role | ||
* | * <code><nowiki>{{Em|Name||role}}</nowiki></code> - Keep primary instrument but add a role | ||
* | |||
=== Parameters === | === Parameters === | ||
* '''1''' through '''20''' - Musician entries | * '''1''' through '''20''' - Musician entries using {{tl|Em}} | ||
* '''title''' - Custom title (default: "Ensemble") | * '''title''' - Custom title (default: "Ensemble") | ||
== See also == | == See also == | ||
* [[Template:Em]] - Ensemble member helper | |||
* [[Template:Show]] - Show infobox (can include Ensemble) | * [[Template:Show]] - Show infobox (can include Ensemble) | ||
* [[Template:m]] - Musician link with instrument icon | * [[Template:m]] - Musician link with instrument icon | ||
| Line 33: | Line 33: | ||
</noinclude><includeonly><div class="ensemble-infobox" style="border: 1px solid #aaa; padding: 0.5em; margin: 0.5em 0; background: #f9f9f9;"> | </noinclude><includeonly><div class="ensemble-infobox" style="border: 1px solid #aaa; padding: 0.5em; margin: 0.5em 0; background: #f9f9f9;"> | ||
<div style="background: #789; color: white; font-weight: bold; padding: 0.3em; margin: -0.5em -0.5em 0.5em -0.5em; text-align: center;">{{#if:{{{title|}}}|{{{title}}}|Ensemble}}</div> | <div style="background: #789; color: white; font-weight: bold; padding: 0.3em; margin: -0.5em -0.5em 0.5em -0.5em; text-align: center;">{{#if:{{{title|}}}|{{{title}}}|Ensemble}}</div> | ||
<div style="line-height: 1.8;">{{#if:{{{1|}}}|{ | <div style="line-height: 1.8;">{{#if:{{{1|}}}|{{{1}}}<br/>|}}{{#if:{{{2|}}}|{{{2}}}<br/>|}}{{#if:{{{3|}}}|{{{3}}}<br/>|}}{{#if:{{{4|}}}|{{{4}}}<br/>|}}{{#if:{{{5|}}}|{{{5}}}<br/>|}}{{#if:{{{6|}}}|{{{6}}}<br/>|}}{{#if:{{{7|}}}|{{{7}}}<br/>|}}{{#if:{{{8|}}}|{{{8}}}<br/>|}}{{#if:{{{9|}}}|{{{9}}}<br/>|}}{{#if:{{{10|}}}|{{{10}}}<br/>|}}{{#if:{{{11|}}}|{{{11}}}<br/>|}}{{#if:{{{12|}}}|{{{12}}}<br/>|}}{{#if:{{{13|}}}|{{{13}}}<br/>|}}{{#if:{{{14|}}}|{{{14}}}<br/>|}}{{#if:{{{15|}}}|{{{15}}}<br/>|}}{{#if:{{{16|}}}|{{{16}}}<br/>|}}{{#if:{{{17|}}}|{{{17}}}<br/>|}}{{#if:{{{18|}}}|{{{18}}}<br/>|}}{{#if:{{{19|}}}|{{{19}}}<br/>|}}{{#if:{{{20|}}}|{{{20}}}|}}</div></div></includeonly> | ||
Revision as of 21:06, 7 February 2026
Ensemble - Infobox template for listing musicians on a show or record page.
Uses Template:Tl to display each musician with their instrument icon. If no instrument is specified, the musician's Primary instrument SMW property is used.
Usage
{{Ensemble
|{{Em|Bronwyn Keith-Hynes}}
|{{Em|Jason Carter}}
|{{Em|Fil Pate|banjo|guest}}
|{{Em|Frank Evans||sit-in}}
}}
Template:Tl Syntax
{{Em|Name}}- Uses their primary instrument{{Em|Name|instrument}}- Override the instrument{{Em|Name|instrument|role}}- Override instrument and add a role{{Em|Name||role}}- Keep primary instrument but add a role
Parameters
- 1 through 20 - Musician entries using Template:Tl
- title - Custom title (default: "Ensemble")
See also
- Template:Em - Ensemble member helper
- Template:Show - Show infobox (can include Ensemble)
- Template:m - Musician link with instrument icon
- Template:ShowInstrument - Core instrument icon logic