Difference between revisions of "Template:Instruments"

From ChoralWiki
Jump to navigation Jump to search
(fixed Lute/Flute/Flutes confusion)
(optional parameters)
Line 1: Line 1:
<includeonly>'''Instruments:''' {{#multireplace:{{sp}}{{{1|}}}{{sp}}|
+
<includeonly>'''Instruments:''' {{{pre|}}}{{#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 24: Line 24:
 
-->{{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:'''

Revision as of 12:19, 1 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.