Template:Instruments: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(avoided calling other templates to make it lighter on resources)
(well, maybe just one extra template / spaces are not doing good)
Line 1: Line 1:
<includeonly>'''Instruments:''' {{{pre|}}}{{#multireplace:&#32; {{{1|}}} &#32;|
<includeonly>'''Instruments:''' {{{pre|}}}{{#multireplace:&#32; {{{1|}}} &#32;|
/(a capp?ella)/i=           [[:Category:A cappella|''$1'']][[Category:A cappella]]|
/(a capp?ella)/i={{Cat|A cappella|''$1''}}|
/(a cap\.)/i=               [[:Category:A cappella|''$1'']][[Category:A cappella]]|
/(a cap\.)/i={{Cat|A cappella|''$1''}}|
/((basso )?continuo)/i=     [[:Category:Basso continuo|$1]][[Category:Basso continuo]]|
/((basso )?continuo)/i={{Cat|Basso continuo|$1}}|
/(b\.?\s?c(ont)*\.?)/i=     [[:Category:Basso continuo|$1]][[Category:Basso continuo]]|
/(b\.?\s?c(ont)*\.?)/i={{Cat|Basso continuo|$1}}|
/(pianos?)/i=               [[:Category:Piano accompaniment|$1]][[Category:Piano accompaniment]]|
/(pianos?)/i={{Cat|Piano accompaniment|$1}}|
/(organs?)/i=               [[:Category:Organ accompaniment|$1]][[Category:Organ accompaniment]]|
/(organs?)/i={{Cat|Organ accompaniment|$1}}|
/(keyboards?)/i=           [[:Category:Keyboard accompaniment|$1]][[Category:Keyboard accompaniment]]|
/(keyboards?)/i={{Cat|Keyboard accompaniment|$1}}|
/(winds)/i=                 [[:Category:Wind ensemble accompaniment|$1]][[Category:Wind ensemble accompaniment]]|
/(winds)/i={{Cat|Wind ensemble accompaniment|$1}}|
/([^f])(lutes?)/i=       $1[[:Category:Lute accompaniment|$2]][[Category:Lute accompaniment]]|
/([^f])(lutes?)/i=$1{{Cat|Lute accompaniment|$2}}|
/(flute)([^s])/i=           [[:Category:Flute accompaniment|$1]][[Category:Flute accompaniment]]$2|
/(flute)([^s])/i={{Cat|Flute accompaniment|$1}}$2|
/(flutes)/i=               [[:Category:Wind ensemble accompaniment|$1]][[Category:Wind ensemble accompaniment]]|
/(flutes)/i={{Cat|Wind ensemble accompaniment|$1}}|
/(mixed ens\.?(emble)?)/i= [[:Category:Mixed ensemble accompaniment|$1]][[Category:Mixed ensemble accompaniment]]|
/(mixed ens\.?(emble)?)/i={{Cat|Mixed ensemble accompaniment|$1}}|
/(brass ens\.?(emble)?)/i= [[:Category:Brass accompaniment|$1]][[Category:Brass accompaniment]]|
/(brass ens\.?(emble)?)/i={{Cat|Brass accompaniment|$1}}|
/(string ens\.?(emble)?)/i= [[:Category:String ensemble accompaniment|$1]][[Category:String ensemble accompaniment]]|
/(string ens\.?(emble)?)/i={{Cat|String ensemble accompaniment|$1}}|
/(strings)/i=               [[:Category:String ensemble accompaniment|$1]][[Category:String ensemble accompaniment]]|
/(strings)/i={{Cat|String ensemble accompaniment|$1}}|
/(guitars?)/i=             [[:Category:Guitar accompaniment|$1]][[Category:Guitar accompaniment]]|
/(guitars?)/i={{Cat|Guitar accompaniment|$1}}|
/(violins?)/i=             [[:Category:Violin accompaniment|$1]][[Category:Violin accompaniment]]|
/(violins?)/i={{Cat|Violin accompaniment|$1}}|
/((violon)?cellos?)/i=     [[:Category:Cello accompaniment|$1]][[Category:Cello accompaniment]]|
/((violon)?cellos?)/i={{Cat|Cello accompaniment|$1}}|
/(viols?)([^aio])/i=       [[:Category:Viol consort accompaniment|$1]][[Category:Viol consort accompaniment]]$2|
/(viols?)([^aio])/i={{Cat|Viol consort accompaniment|$1}}$2|
/(harpsichords?)/i=         [[:Category:Harpsichord accompaniment|$1]][[Category:Harpsichord accompaniment]]|
/(harpsichords?)/i={{Cat|Harpsichord accompaniment|$1}}|
/(harp)([^s])/i=           [[:Category:Harp accompaniment|$1]][[Category:Harp accompaniment]]$2|
/(harp)([^s])/i={{Cat|Harp accompaniment|$1}}$2|
/(harps)([^i])/i=           [[:Category:Harp accompaniment|$1]][[Category:Harp accompaniment]]$2|
/(harps)([^i])/i={{Cat|Harp accompaniment|$1}}$2|
/(orchestras?)/i=           [[:Category:Orchestra accompaniment|$1]][[Category:Orchestra accompaniment]] }} {{{2|}}}<br>
/(orchestras?)/i={{Cat|Orchestra accompaniment|$1}} }} {{{2|}}}<br>
</includeonly><noinclude><!--
</includeonly><noinclude><!--
-->{{DisplayBox|bgcolor=g|text=
-->{{DisplayBox|bgcolor=g|text=

Revision as of 13:18, 3 June 2014

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.