Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to navigation Jump to search
m
m (Text replacement - "Category\:(.*)\]\]" to "Category:DPL templates]] Category:$1")
 
(39 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>'''Instruments:''' {{#multireplace: {{{1|}}}|
+
<includeonly>'''Instruments:''' {{{pre|}}}{{#replaceset:&#32; {{{1|}}} &#32;|
/(a cappella)/i={{acap|$1}}|
+
/(a capp?ella)/i={{Mcat|A cappella|''$1''}}|
/(a cap\.)/i={{acap|$1}}|
+
/(a cap\.)/i={{Mcat|A cappella|''$1''}}|
/(a capella)/i={{acap|$1}}|
+
/((basso )?continuo)/i={{Mcat|Basso continuo|$1}}|
/((basso )?continuo)/i={{BsCont|$1}}|
+
/(b\.?\s?c(ont)*\.?)/i={{Mcat|Basso continuo|$1}}|
/(b\.?\s?c(ont)*\.?)/i={{BsCont|$1}}|
+
/(pianos? 4-hands)/i={{Mcat|Piano 4-hands accompaniment|$1}}|
/(pianos?)/i={{PnoAcc|$1}}|
+
/(piano(forte)?s?)([^s])([^4])/i={{Mcat|Piano accompaniment|$1}}$3$4|
/(organs?)/i={{OrgAcc|$1}}|
+
/(organ[os]?)/i={{Mcat|Organ accompaniment|$1}}|
/(keyboards?)/i={{KbdAcc|$1}}|
+
/(keyboards?)/i={{Mcat|Keyboard accompaniment|$1}}|
/(winds)/i={{WindAcc|$1}}|
+
/(winds)/i={{Mcat|Wind ensemble accompaniment|$1}}|
/(flutes)/i={{WindAcc|$1}}|
+
/([^f])(lutes?)/i=$1{{Mcat|Lute accompaniment|$2}}|
/(flute)([^s]*)/i={{FluteAcc|$1}}$2|
+
/(flutes?)/i={{Mcat|Flute accompaniment|$1}}|
/([^f]+)(lutes?)/i=$1{{LuteAcc|$2}}|
+
/(mixed ens\.?(emble)?)/i={{Mcat|Mixed ensemble accompaniment|$1}}|
/(mixed ens\.?(emble)?)/i={{MxEnsAcc|$1}}|
+
/(brass ens\.?(emble)?)/i={{Mcat|Brass accompaniment|$1}}|
/(brass ens\.?(emble)?)/i={{BrassAcc|$1}}|
+
/(string ens\.?(emble)?)/i={{Mcat|String ensemble accompaniment|$1}}|
/(string ens\.?(emble)?)/i={{StrAcc|$1}}|
+
/(strings)/i={{Mcat|String ensemble accompaniment|$1}}|
/(strings)/i={{StrAcc|$1}}|
+
/((classic )?guitars?)/i={{Mcat|Guitar accompaniment|$1}}|
/(guitars?)/i={{GtrAcc|$1}}|
+
/(violins?)([^c])/i={{Mcat|Violin accompaniment|$1}}$2|
/(violins?)/i={{StrAcc|$1}}|
+
/((violon)?cellos?)/i={{Mcat|Cello accompaniment|$1}}|
/((violon)?cellos?)/i={{CelloAcc|$1}}|
+
/(viol[ae]s?)([^s][^d])/i={{Mcat|Viola accompaniment|$1}}$2|
/(viols?)([^io])/i={{ViolAcc|$1}}$2|
+
/(viol[ae]s? da gamba)/i={{Mcat|Viola da gamba accompaniment|$1}}|
/(harps?)/i={{HarpAcc|$1}}|
+
/(viol)([ .,;][^c])/i={{Mcat|Viola da gamba accompaniment|$1}}$2|
/(orchestras?)/i={{OrchAcc|$1}} }} {{{2|}}}<br></includeonly><noinclude><!--
+
/(viols)([ ,;.])/i={{Mcat|Viol consort accompaniment|$1}}$2|
 +
/([^:])(viol consort)/i=$1{{Mcat|Viol consort accompaniment|$2}}|
 +
/(wind ens\.?(emble)?)/i={{Mcat|Wind ensemble accompaniment|$1}}|
 +
/(harpsichords?)/i={{Mcat|Harpsichord accompaniment|$1}}|
 +
/(harp)([^s])/i={{Mcat|Harp accompaniment|$1}}$2|
 +
/(harps)([^i])/i={{Mcat|Harp accompaniment|$1}}$2|
 +
/((chamber )?orchestras?)/i={{Mcat|Orchestra accompaniment|$1}} }} {{{2|}}}<br>
 +
</includeonly><noinclude><!--
 
-->{{DisplayBox|bgcolor=g|text=
 
-->{{DisplayBox|bgcolor=g|text=
 
'''Syntax:'''
 
'''Syntax:'''
:<tt><nowiki>{{Instruments|<instrumentation as typed by the user>}}</nowiki></tt>
+
:{{tl|Instruments|<instrumentation as normal text>}}
 +
 
 +
'''Syntax with optional parameters:'''
 +
:{{tl|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:'''
 
'''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: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 pertinent 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>

Latest 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.