Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
No edit summary
(optional "add" parameter for appending any other voicing info)
Line 12: Line 12:
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}} or {{vcat|{{#explode:{{{2}}}|,|1}}}}
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}} or {{vcat|{{#explode:{{{2}}}|,|1}}}}
|'''Voicing:''' {{#if:{{{3|}}} | {{vcat|{{{2}}}|{{{3}}}}} | {{vcat|{{{2}}}}} }} }} }} }} }} }}<!-- else -->
|'''Voicing:''' {{#if:{{{3|}}} | {{vcat|{{{2}}}|{{{3}}}}} | {{vcat|{{{2}}}}} }} }} }} }} }} }}<!-- else -->
|'''Voicing:''' {{cat|Unknown voicing|{{{3|Unknown}}} }} }}<br></includeonly><noinclude>{{prot-temp}}
|'''Voicing:''' {{cat|Unknown voicing|{{{3|Unknown}}} }} }}{{#if:{{{add|}}} | {{{add}}} }}<br></includeonly><noinclude>{{prot-temp}}
{{Doc|1=
{{Doc|1=


Line 31: Line 31:
:: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SATB|SATB divisi}}
:: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SATB|SATB divisi}}
:and inserts the page in [[:category:SATB]]
:and inserts the page in [[:category:SATB]]
'''Optinal 'add' parameter'''
:use <nowiki>add=<any text></nowiki> to append any text (which may include templates such as {{tl|vcat}}) at the end of the voicing specification; e.g.
*<tt><nowiki>{{Voicing|5|SATBB|SATBarB|add=with optional S {{pcat|descant|s}} }}</nowiki></tt>


===See also===
===See also===
* [[Template:MultiVoicing]]
* [[Template:MultiVoicing]]
}}
}}
[[Category:Templates]]</noinclude>
[[Category:Templates]]</noinclude>

Revision as of 15:42, 5 July 2021

Documentation

Syntax with required first and second parameters:

which produces the text
Number of voices: 5vv   Voicing: SSATB
and inserts the page in category:SSATB
which produces the text
Number of voices: 3vv   Voicings: ATB, SSA or STB
and inserts the page in category:ATB, category:SSA and category:STB

Syntax with required parameters and optional third parameter:

which produces the text
Number of voices: 4vv   Voicing: SATB divisi
and inserts the page in category:SATB

Optinal 'add' parameter

use add=<any text> to append any text (which may include templates such as {{vcat}}) at the end of the voicing specification; e.g.
  • {{Voicing|5|SATBB|SATBarB|add=with optional S {{pcat|descant|s}} }}

See also