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 to use Em sub-template - works without #explode (via update-page on MediaWiki MCP Server) |
Simplified syntax using #explode - just Name or Name:instrument (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|m}} 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 | |||
|Jason Carter | |||
|Fil Pate:banjo | |||
}} | }} | ||
</pre> | </pre> | ||
=== | === Syntax === | ||
* | * '''Name''' - Uses their primary instrument | ||
* | * '''Name:instrument''' - Override the instrument | ||
=== Parameters === | === Parameters === | ||
* '''1''' through '''20''' - Musician entries | * '''1''' through '''20''' - Musician entries (see syntax above) | ||
* '''title''' - Custom title (default: "Ensemble") | * '''title''' - Custom title (default: "Ensemble") | ||
== See also == | == See also == | ||
* [[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 29: | ||
</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|}}}|{{{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> | <div style="line-height: 1.8;">{{#if:{{{1|}}}|{{m|{{#explode:{{{1}}}|:|0}}|{{#explode:{{{1}}}|:|1}}}}<br/>|}}{{#if:{{{2|}}}|{{m|{{#explode:{{{2}}}|:|0}}|{{#explode:{{{2}}}|:|1}}}}<br/>|}}{{#if:{{{3|}}}|{{m|{{#explode:{{{3}}}|:|0}}|{{#explode:{{{3}}}|:|1}}}}<br/>|}}{{#if:{{{4|}}}|{{m|{{#explode:{{{4}}}|:|0}}|{{#explode:{{{4}}}|:|1}}}}<br/>|}}{{#if:{{{5|}}}|{{m|{{#explode:{{{5}}}|:|0}}|{{#explode:{{{5}}}|:|1}}}}<br/>|}}{{#if:{{{6|}}}|{{m|{{#explode:{{{6}}}|:|0}}|{{#explode:{{{6}}}|:|1}}}}<br/>|}}{{#if:{{{7|}}}|{{m|{{#explode:{{{7}}}|:|0}}|{{#explode:{{{7}}}|:|1}}}}<br/>|}}{{#if:{{{8|}}}|{{m|{{#explode:{{{8}}}|:|0}}|{{#explode:{{{8}}}|:|1}}}}<br/>|}}{{#if:{{{9|}}}|{{m|{{#explode:{{{9}}}|:|0}}|{{#explode:{{{9}}}|:|1}}}}<br/>|}}{{#if:{{{10|}}}|{{m|{{#explode:{{{10}}}|:|0}}|{{#explode:{{{10}}}|:|1}}}}<br/>|}}{{#if:{{{11|}}}|{{m|{{#explode:{{{11}}}|:|0}}|{{#explode:{{{11}}}|:|1}}}}<br/>|}}{{#if:{{{12|}}}|{{m|{{#explode:{{{12}}}|:|0}}|{{#explode:{{{12}}}|:|1}}}}<br/>|}}{{#if:{{{13|}}}|{{m|{{#explode:{{{13}}}|:|0}}|{{#explode:{{{13}}}|:|1}}}}<br/>|}}{{#if:{{{14|}}}|{{m|{{#explode:{{{14}}}|:|0}}|{{#explode:{{{14}}}|:|1}}}}<br/>|}}{{#if:{{{15|}}}|{{m|{{#explode:{{{15}}}|:|0}}|{{#explode:{{{15}}}|:|1}}}}<br/>|}}{{#if:{{{16|}}}|{{m|{{#explode:{{{16}}}|:|0}}|{{#explode:{{{16}}}|:|1}}}}<br/>|}}{{#if:{{{17|}}}|{{m|{{#explode:{{{17}}}|:|0}}|{{#explode:{{{17}}}|:|1}}}}<br/>|}}{{#if:{{{18|}}}|{{m|{{#explode:{{{18}}}|:|0}}|{{#explode:{{{18}}}|:|1}}}}<br/>|}}{{#if:{{{19|}}}|{{m|{{#explode:{{{19}}}|:|0}}|{{#explode:{{{19}}}|:|1}}}}<br/>|}}{{#if:{{{20|}}}|{{m|{{#explode:{{{20}}}|:|0}}|{{#explode:{{{20}}}|:|1}}}}|}}</div></div></includeonly> | ||
Revision as of 21:25, 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
|Bronwyn Keith-Hynes
|Jason Carter
|Fil Pate:banjo
}}
Syntax
- Name - Uses their primary instrument
- Name:instrument - Override the instrument
Parameters
- 1 through 20 - Musician entries (see syntax above)
- title - Custom title (default: "Ensemble")
See also
- Template:Show - Show infobox (can include Ensemble)
- Template:m - Musician link with instrument icon
- Template:ShowInstrument - Core instrument icon logic