Template:Instruments: Difference between revisions
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:  {{{1|}}}  | | <includeonly>'''Instruments:''' {{{pre|}}}{{#multireplace:  {{{1|}}}  | | ||
/(a capp?ella)/i= | /(a capp?ella)/i={{Cat|A cappella|''$1''}}| | ||
/(a cap\.)/i= | /(a cap\.)/i={{Cat|A cappella|''$1''}}| | ||
/((basso )?continuo)/i= | /((basso )?continuo)/i={{Cat|Basso continuo|$1}}| | ||
/(b\.?\s?c(ont)*\.?)/i= | /(b\.?\s?c(ont)*\.?)/i={{Cat|Basso continuo|$1}}| | ||
/(pianos?)/i= | /(pianos?)/i={{Cat|Piano accompaniment|$1}}| | ||
/(organs?)/i= | /(organs?)/i={{Cat|Organ accompaniment|$1}}| | ||
/(keyboards?)/i= | /(keyboards?)/i={{Cat|Keyboard accompaniment|$1}}| | ||
/(winds)/i= | /(winds)/i={{Cat|Wind ensemble accompaniment|$1}}| | ||
/([^f])(lutes?)/i= | /([^f])(lutes?)/i=$1{{Cat|Lute accompaniment|$2}}| | ||
/(flute)([^s])/i= | /(flute)([^s])/i={{Cat|Flute accompaniment|$1}}$2| | ||
/(flutes)/i= | /(flutes)/i={{Cat|Wind ensemble accompaniment|$1}}| | ||
/(mixed ens\.?(emble)?)/i= | /(mixed ens\.?(emble)?)/i={{Cat|Mixed ensemble accompaniment|$1}}| | ||
/(brass ens\.?(emble)?)/i= | /(brass ens\.?(emble)?)/i={{Cat|Brass accompaniment|$1}}| | ||
/(string ens\.?(emble)?)/i= | /(string ens\.?(emble)?)/i={{Cat|String ensemble accompaniment|$1}}| | ||
/(strings)/i= | /(strings)/i={{Cat|String ensemble accompaniment|$1}}| | ||
/(guitars?)/i= | /(guitars?)/i={{Cat|Guitar accompaniment|$1}}| | ||
/(violins?)/i= | /(violins?)/i={{Cat|Violin accompaniment|$1}}| | ||
/((violon)?cellos?)/i= | /((violon)?cellos?)/i={{Cat|Cello accompaniment|$1}}| | ||
/(viols?)([^aio])/i= | /(viols?)([^aio])/i={{Cat|Viol consort accompaniment|$1}}$2| | ||
/(harpsichords?)/i= | /(harpsichords?)/i={{Cat|Harpsichord accompaniment|$1}}| | ||
/(harp)([^s])/i= | /(harp)([^s])/i={{Cat|Harp accompaniment|$1}}$2| | ||
/(harps)([^i])/i= | /(harps)([^i])/i={{Cat|Harp accompaniment|$1}}$2| | ||
/(orchestras?)/i= | /(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.