Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to navigation Jump to search
Line 18: Line 18:
 
/((classic )?guitars?)/i={{Mcat|Guitar accompaniment|$1}}|
 
/((classic )?guitars?)/i={{Mcat|Guitar accompaniment|$1}}|
 
/(tr^o\.?(umpet)?s?)/i={{Mcat|Trumpet accompaniment|$1}}|
 
/(tr^o\.?(umpet)?s?)/i={{Mcat|Trumpet accompaniment|$1}}|
/(tromb\.?(one)?s?)/i={{Mcat|Trombone accompaniment|$}}|
+
/(tromb\.?(one)?s?)/i={{Mcat|Trombone accompaniment|$1}}|
 
/(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}}|

Revision as of 15:31, 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 accompaniment categories.