Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to navigation Jump to search
(demonstrate <post text> in example; adding |pre=several different mixed ensembles}} seems to break something in preview)
(One intermediate revision by the same user not shown)
Line 13: Line 13:
 
/(mixed ens\.?(emble)?)/i={{Mcat|Mixed ensemble accompaniment|$1}}|
 
/(mixed ens\.?(emble)?)/i={{Mcat|Mixed ensemble accompaniment|$1}}|
 
/(brass ens\.?(emble)?)/i={{Mcat|Brass accompaniment|$1}}|
 
/(brass ens\.?(emble)?)/i={{Mcat|Brass accompaniment|$1}}|
 +
/(brass?)/i={{Mcat|Brass accompaniment|$1}}|
 
/(string ens\.?(emble)?)/i={{Mcat|String ensemble accompaniment|$1}}|
 
/(string ens\.?(emble)?)/i={{Mcat|String ensemble accompaniment|$1}}|
 
/(strings)/i={{Mcat|String ensemble accompaniment|$1}}|
 
/(strings)/i={{Mcat|String ensemble accompaniment|$1}}|
Line 38: Line 39:
  
 
'''Example:'''
 
'''Example:'''
:{{tl|Instruments|A cappella (opt. piano/organ accompaniment); OR String ens. (i.e. Strings: violins or 1 violin, viols and cello), flutes and B. Cont.; OR Lutes, winds (or 1 flute) & continuo.}}
+
:{{tl|Instruments|A cappella (opt. piano/organ accompaniment); OR String ens. (i.e. Strings: violins or 1 violin, viols and cello), flutes and B. Cont.; OR Lutes, winds (or 1 flute) & continuo| (lute, harp or harpsichord).|pre=different mixed ensembles: }}
 
produces the text
 
produces the text
  
Line 56: Line 57:
 
[[:Category:Wind ensemble accompaniment|winds]] (or 1  
 
[[:Category:Wind ensemble accompaniment|winds]] (or 1  
 
[[:Category:Flute accompaniment|flute]]) &  
 
[[:Category:Flute accompaniment|flute]]) &  
[[:Category:Basso continuo|continuo]].
+
[[:Category:Basso continuo|continuo]]  
 +
(lute, harp or harpsichord).
  
 
and categorizes the page in all associated  
 
and categorizes the page in all associated  

Revision as of 08:53, 6 March 2021

Syntax:

{{Instruments|<instrumentation as normal text>}}

Syntax with optional parameters:

{{Instruments|<instrumentation as normal text>|<post text>|pre=<previous text>}}

The previous and post texts will not be analyzed, even if they cite instrumentations.

Example:

{{Instruments|A cappella (opt. piano/organ accompaniment); OR String ens. (i.e. Strings: violins or 1 violin, viols and cello), flutes and B. Cont.; OR Lutes, winds (or 1 flute) & continuo| (lute, harp or harpsichord).}}

produces the text

Instruments:

A cappella (opt. piano/ organ accompaniment); OR String ens. (i.e. Strings: violins or 1 violin, viols and cello), flutes and B. Cont.; OR Lutes, winds (or 1 flute) & continuo (lute, harp or harpsichord).

and categorizes the page in all associated.