Template:Instruments: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(hopefully that'll work)
(fixed Lute/Flute/Flutes confusion)
Line 1: Line 1:
<includeonly>'''Instruments:''' {{#multireplace: {{{1|}}}|
<includeonly>'''Instruments:''' {{#multireplace:{{sp}}{{{1|}}}{{sp}}|
/(a cappella)/i={{acap|$1}}|
/(a cappella)/i={{acap|$1}}|
/(a cap\.)/i={{acap|$1}}|
/(a cap\.)/i={{acap|$1}}|
Line 9: Line 9:
/(keyboards?)/i={{KbdAcc|$1}}|
/(keyboards?)/i={{KbdAcc|$1}}|
/(winds)/i={{WindAcc|$1}}|
/(winds)/i={{WindAcc|$1}}|
/([^f]lutes?)/i={{LuteAcc|$1}}|
/([^f])(lutes?)/i=$1{{LuteAcc|$2}}|
/(flute)([^s]*)/i={{FluteAcc|$1}}$2|
/(flute)([^s])/i={{FluteAcc|$1}}$2|
/(flutes)/i={{WindAcc|$1}}|
/(flutes)/i={{WindAcc|$1}}|
/(mixed ens\.?(emble)?)/i={{MxEnsAcc|$1}}|
/(mixed ens\.?(emble)?)/i={{MxEnsAcc|$1}}|
Line 27: Line 27:


'''Example:'''
'''Example:'''
:<nowiki>{{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.}}</nowiki>
:{{tl|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
produces the text


:'''Instruments:''' ''[[:Category:A cappella|A Cappella]]'' (opt. [[:Category:Piano accompaniment|piano]]/[[:Category:Organ accompaniment|organ]] accompaniment); OR [[:Category:String ensemble accompaniment|String Ens.]] (i.e. [[:Category:String ensemble accompaniment|Strings]]: [[:Category:String ensemble accompaniment|Violins]] or 1 [[:Category:String ensemble accompaniment|violin]], [[:Category:Viol consort accompaniment|Viols]] and [[:Category:String ensemble accompaniment|Cello]]), [[:Category:Wind ensemble accompaniment|Flutes]] and [[:Category:Basso continuo|B. Cont.]]; OR [[:Category:Lute accompaniment|Lutes]], [[:Category:Wind ensemble accompaniment|Winds]] (or 1 [[:Category:Flute accompaniment|flute]]) & [[:Category:Basso continuo|Continuo]].
:'''Instruments:''' ''[[:Category:A cappella|A cappella]]'' (opt. [[:Category:Piano accompaniment|piano]]/[[:Category:Organ accompaniment|organ]] accompaniment); OR [[:Category:String ensemble accompaniment|String ens.]] (i.e. [[:Category:String ensemble accompaniment|Strings]]: [[:Category:String ensemble accompaniment|violins]] or 1 [[:Category:String ensemble accompaniment|violin]], [[:Category:Viol consort accompaniment|viols]] and [[:Category:Cello accompaniment|cello]]), [[:Category:Wind ensemble accompaniment|flutes]] and [[:Category:Basso continuo|B. Cont.]]; OR [[:Category:Lute accompaniment|Lutes]], [[:Category:Wind ensemble accompaniment|winds]] (or 1 [[:Category:Flute accompaniment|flute]]) & [[:Category:Basso continuo|continuo]].


and categorizes the page in all pertinent accompaniment categories.
and categorizes the page in all associated [[:Category:Accompaniment|accompaniment categories]].
}}
}}
[[Category:Accompaniment templates]]
[[Category:Accompaniment templates]]
</noinclude>
</noinclude>

Revision as of 12:05, 1 June 2014

Syntax:

{{Instruments|<instrumentation as typed by the user>}}

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.