Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(Category:Templates)
(an if is necessary)
(25 intermediate revisions by 4 users not shown)
Line 1: Line 1:
'''Number of voices:''' {{{1}}}vv '''Voicing:''' [[:Category:{{{2}}}|{{{3}}}]]
<includeonly>'''Number of voices:''' {{#switch: {{{1|}}}
[[Category:{{{2}}}]]
| 1=1v
<noinclude>[[Category:Templates]]</noinclude>
| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12|13|14|15|16|17|18|19|20|21
|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41
|42={{{1}}}vv
|  =({{cat|Works lacking number of voices|missing}})
|#default={{{1}}}vv[[Category:Works with varying number of voices]]}} &nbsp; {{#if:{{{2|}}}
|{{#if:{{#explode:{{{2}}}|,|5}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}}, {{vcat|{{#explode:{{{2}}}|,|3}}}}, {{vcat|{{#explode:{{{2}}}|,|4}}}} or {{vcat|{{#explode:{{{2}}}|,|5}}}}
|{{#if:{{#explode:{{{2}}}|,|4}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}}, {{vcat|{{#explode:{{{2}}}|,|3}}}} or {{vcat|{{#explode:{{{2}}}|,|4}}}}
|{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}} or {{vcat|{{#explode:{{{2}}}|,|3}}}}
|{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}} or {{vcat|{{#explode:{{{2}}}|,|2}}}}
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}} or {{vcat|{{#explode:{{{2}}}|,|1}}}}
|'''Voicing:''' {{#if:{{{3|}}} | {{vcat|{{{2}}}|{{{3}}}}} | {{vcat|{{{2}}}}} }} }} }} }} }} }}<!-- else -->
|'''Voicing:''' {{cat|Unknown voicing|{{{3|Unknown}}} }} }}<!-- endif --></includeonly><noinclude>{{prot-temp}}<br>
{{Doc|1=
 
'''Syntax with required <font color="orange">first</font> and <font color="green">second</font> parameters:'''
*{{tl|Voicing|2=<font color="orange">5</font>|3=<font color="green">SSATB</font>}}
:which produces the text
:: '''Number of voices:''' 5vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SSATB}}
:and inserts the page in [[:category:SSATB]]
 
*{{tl|Voicing|2=<font color="orange">3</font>|3=<font color="green">ATB,SSA,STB</font>}}
:which produces the text
:: '''Number of voices:''' 3vv&nbsp;&nbsp;&nbsp;'''Voicings:''' {{CC|ATB}}, {{CC|SSA}} or {{CC|STB}}
:and inserts the page in [[:category:ATB]], [[:category:SSA]] and [[:category:STB]]  
 
'''Syntax with required parameters and optional <font color="green">third</font> parameter:'''
*{{tl|Voicing|4|SATB|4=<font color="green">SATB divisi</font>}}
:which produces the text
:: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SATB|SATB divisi}}
:and inserts the page in [[:category:SATB]]
 
===See also===
* [[Template:MultiVoicing]]
}}
[[Category:Templates]]</noinclude>

Revision as of 18:14, 24 June 2015


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

See also