Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to: navigation, search
(using Mcat)
(more corrections)
Line 18: Line 18:
 
/(violins?)([^c])/i={{Mcat|Violin accompaniment|$1}}$2|
 
/(violins?)([^c])/i={{Mcat|Violin accompaniment|$1}}$2|
 
/((violon)?cellos?)/i={{Mcat|Cello accompaniment|$1}}|
 
/((violon)?cellos?)/i={{Mcat|Cello accompaniment|$1}}|
 +
/(viol[ae]s?)([^s][^d])/i={{Mcat|Viola accompaniment|$1}}$2|
 
/(viol[ae]s? da gamba)/i={{Mcat|Viola da gamba accompaniment|$1}}|
 
/(viol[ae]s? da gamba)/i={{Mcat|Viola da gamba accompaniment|$1}}|
/(viol[ae]s?)([^s][^d])/i={{Mcat|Viola accompaniment|$1}}$2|
+
/(viol)([ .,;][^c])/i={{Mcat|Viola da gamba accompaniment|$1}}$2|
/(viols?)([^aãceio][^c])/i={{Mcat|Viol accompaniment|$1}}$2|
+
/(viols)([ ,;.])/i={{Mcat|Viol consort accompaniment|$1}}$2|
/(viol consort)/i={{Mcat|Viol consort accompaniment|$1}}|
+
/([^:])(viol consort)/i=$1{{Mcat|Viol consort accompaniment|$2}}|
 
/(wind ens\.?(emble)?)/i={{Mcat|Wind ensemble accompaniment|$1}}|
 
/(wind ens\.?(emble)?)/i={{Mcat|Wind ensemble accompaniment|$1}}|
 
/(harpsichords?)/i={{Mcat|Harpsichord accompaniment|$1}}|
 
/(harpsichords?)/i={{Mcat|Harpsichord accompaniment|$1}}|

Revision as of 16:35, 1 February 2019

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.}}

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.

and categorizes the page in all associated accompaniment categories.