Template:Instruments: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(added keyboard reduction, as discussed)
m (Text replacement - "Category\:(.*)\]\]" to "Category:DPL templates]] Category:$1")
(3 intermediate revisions by 2 users not shown)
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''}}|
Line 7: Line 7:
/(piano(forte)?s?)([^s])([^4])/i={{Mcat|Piano accompaniment|$1}}$3$4|
/(piano(forte)?s?)([^s])([^4])/i={{Mcat|Piano accompaniment|$1}}$3$4|
/(organ[os]?)/i={{Mcat|Organ accompaniment|$1}}|
/(organ[os]?)/i={{Mcat|Organ accompaniment|$1}}|
/(keyboard reduction)/i={{Mcat|Keyboard reduction|$1}}|
/(keyboards?)/i={{Mcat|Keyboard accompaniment|$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}}|
Line 42: Line 41:
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: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]].
:'''Instruments:''' ''[[:Category:DPL templates]]
[[Category:A cappella|A cappella]]'' (opt. [[:Category:DPL templates]]
[[Category:Piano accompaniment|piano]]/[[:Category:DPL templates]]
[[Category:Organ accompaniment|organ]] accompaniment); OR [[:Category:DPL templates]]
[[Category:String ensemble accompaniment|String ens.]] (i.e. [[:Category:DPL templates]]
[[Category:String ensemble accompaniment|Strings]]: [[:Category:DPL templates]]
[[Category:String ensemble accompaniment|violins]] or 1 [[:Category:DPL templates]]
[[Category:String ensemble accompaniment|violin]], [[:Category:DPL templates]]
[[Category:Viol consort accompaniment|viols]] and [[:Category:DPL templates]]
[[Category:Cello accompaniment|cello]]), [[:Category:DPL templates]]
[[Category:Wind ensemble accompaniment|flutes]] and [[:Category:DPL templates]]
[[Category:Basso continuo|B. Cont.]]; OR [[:Category:DPL templates]]
[[Category:Lute accompaniment|Lutes]], [[:Category:DPL templates]]
[[Category:Wind ensemble accompaniment|winds]] (or 1 [[:Category:DPL templates]]
[[Category:Flute accompaniment|flute]]) & [[:Category:DPL templates]]
[[Category:Basso continuo|continuo]].


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

Revision as of 04:10, 5 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: Category:DPL templates (opt. Category:DPL templates/Category:DPL templates accompaniment); OR Category:DPL templates (i.e. Category:DPL templates: Category:DPL templates or 1 Category:DPL templates, Category:DPL templates and Category:DPL templates), Category:DPL templates and Category:DPL templates; OR Category:DPL templates, Category:DPL templates (or 1 Category:DPL templates) & Category:DPL templates.

and categorizes the page in all associated Category:DPL templates.