Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(up to 5 different voicings (and alternate namings))
(an if is necessary)
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
'''Number of voices:''' {{switch|{{{1}}}
<includeonly>'''Number of voices:''' {{#switch: {{{1|}}}
|case: 1=1v
| 1=1v
|default={{{1}}}vv}} &nbsp; '''Voicing:''' {{switch|{{{num|}}}
| 2| 3| 4| 5| 6| 7| 8| 9|10|11|12|13|14|15|16|17|18|19|20|21
|case: 1={{cat|{{{1st|{{{2}}}}}}|{{{1stalt|{{{3|{{{1stalt|{{{1st}}}}}}}}}}}}|9={{{9|{{PAGENAME}}}}}}}
|22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41
|case: 2={{cat|{{{3}}}|{{{4|{{{3}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{2nd}}}|{{{2ndalt|{{{2nd}}}}}}|9={{{9|{{PAGENAME}}}}}}}
|42={{{1}}}vv
|case: 3={{cat|{{{3}}}|{{{4|{{{3}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{2nd}}}|{{{2ndalt|{{{2nd}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{3rd}}}|{{{3rdalt|{{{3rd}}}}}}|9={{{9|{{PAGENAME}}}}}}}
|  =({{cat|Works lacking number of voices|missing}})
|case: 4={{cat|{{{3}}}|{{{4|{{{3}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{2nd}}}|{{{2ndalt|{{{2nd}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{3rd}}}|{{{3rdalt|{{{3rd}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{4th}}}|{{{4thalt|{{{4th}}}}}}|9={{{9|{{PAGENAME}}}}}}}
|#default={{{1}}}vv[[Category:Works with varying number of voices]]}} &nbsp; {{#if:{{{2|}}}
|case: 5={{cat|{{{3}}}|{{{4|{{{3}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{2nd}}}|{{{2ndalt|{{{2nd}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{3rd}}}|{{{3rdalt|{{{3rd}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{4th}}}|{{{4thalt|{{{4th}}}}}}|9={{{9|{{PAGENAME}}}}}}}, {{cat|{{{5th}}}|{{{5thalt|{{{5th}}}}}}|9={{{9|{{PAGENAME}}}}}}}
|{{#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}}}}
|default=<includeonly>{{cat|{{{2}}}|{{{3|{{{2}}}}}}|9={{{9|{{PAGENAME}}}}}]]</includeonly>
|{{#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}}}}
}}<noinclude>{{prot-temp}}<br>
|{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}} or {{vcat|{{#explode:{{{2}}}|,|3}}}}
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
|{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}} or {{vcat|{{#explode:{{{2}}}|,|2}}}}
<center><big>'''Documentation'''</big></center>
|{{#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:'''
'''Syntax with required <font color="orange">first</font> and <font color="green">second</font> parameters:'''
: <tt><nowiki>{{Voicing|</nowiki><font color="orange">5</font>|<font color="green">SSATB</font>}}</tt>
*{{tl|Voicing|2=<font color="orange">5</font>|3=<font color="green">SSATB</font>}}
which produces the text
:which produces the text
: '''Number of voices:''' 5vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SSATB|SSATB]]
:: '''Number of voices:''' 5vv&nbsp;&nbsp;&nbsp;'''Voicing:''' {{CC|SSATB}}
and inserts the page in [[:Category: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:'''
'''Syntax with required parameters and optional <font color="green">third</font> parameter:'''
: <tt><nowiki>{{Voicing|4|SATB|</nowiki><font color="green">SATB divisi</font>}}</tt>
*{{tl|Voicing|4|SATB|4=<font color="green">SATB divisi</font>}}
which produces the text
:which produces the text
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category: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]]
 
'''Syntax with required parameters and optional <font color="green">sortkey</font>:'''
: <tt><nowiki>{{Voicing|4|SATB|</nowiki><font color="green">9=Riddle Song, The</font>}}</tt>
which produces the text
: '''Number of voices:''' 4vv&nbsp;&nbsp;&nbsp;'''Voicing:''' [[:Category:SATB|SATB]]
and inserts the page in [[:Category:SATB]], sorted under "Riddle Song, The".
 
'''Both optional third parameter and sortkey may be used together.'''


</div>[[Category:Templates|{{PAGENAME}}]]</noinclude>
===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