Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to navigation Jump to search
(basso seguente)
(Multireplace -> replaceset)
Line 1: Line 1:
<includeonly>'''Instruments:''' {{{pre|}}}{{#multireplace:&#32; {{{1|}}} &#32;|
+
<includeonly>'''Instruments:''' {{{pre|}}}{{#replaceset:&#32; {{{1|}}} &#32;|
 
/(a capp?ella)/i={{Mcat|A cappella|''$1''}}|
 
/(a capp?ella)/i={{Mcat|A cappella|''$1''}}|
 
/(a cap\.)/i={{Mcat|A cappella|''$1''}}|
 
/(a cap\.)/i={{Mcat|A cappella|''$1''}}|
 
/((basso )?continuo)/i={{Mcat|Basso continuo|$1}}|
 
/((basso )?continuo)/i={{Mcat|Basso continuo|$1}}|
 
/(b\.?\s?c(ont)*\.?)/i={{Mcat|Basso continuo|$1}}|
 
/(b\.?\s?c(ont)*\.?)/i={{Mcat|Basso continuo|$1}}|
/(basso seguente)/i={{Mcat|Basso continuo|$1}}|
 
 
/(pianos? 4-hands)/i={{Mcat|Piano 4-hands accompaniment|$1}}|
 
/(pianos? 4-hands)/i={{Mcat|Piano 4-hands accompaniment|$1}}|
/(piano reduction)/i={{Mcat|Piano reduction|$1}}|
+
/(piano(forte)?s?)([^s])([^4])/i={{Mcat|Piano accompaniment|$1}}$3$4|
/([ .,;(])(piano(forte)?s?)([^s])([^4])/i=$1{{Mcat|Piano accompaniment|$2}}$4$5|
+
/(organ[os]?)/i={{Mcat|Organ accompaniment|$1}}|
/(organ reduction)/i={{Mcat|Organ reduction|$1}}|
+
/(keyboards?)/i={{Mcat|Keyboard accompaniment|$1}}|
/([ .,;(])(organ[os]?)/i=$1{{Mcat|Organ accompaniment|$2}}|
 
/(keyboard reduction)/i={{Mcat|Keyboard reduction|$1}}|
 
/([ .,;(])(keyboards?)/i=$1{{Mcat|Keyboard accompaniment|$2}}|
 
 
/(winds)/i={{Mcat|Wind ensemble accompaniment|$1}}|
 
/(winds)/i={{Mcat|Wind ensemble accompaniment|$1}}|
 
/([^f])(lutes?)/i=$1{{Mcat|Lute accompaniment|$2}}|
 
/([^f])(lutes?)/i=$1{{Mcat|Lute accompaniment|$2}}|

Revision as of 22:28, 3 January 2020

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.