Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(replaced cat with vcat)
(Works lacking number of voices / Works with varying number of voices)
Line 1: Line 1:
<includeonly>'''Number of voices:''' {{switch|{{{1}}}
<includeonly>'''Number of voices:''' {{#switch: {{{1|}}}
|case: 1=1v
| 1=1v
|default={{{1}}}vv}} &nbsp; {{#if:{{{2|}}}
| 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}}}|,|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}}}|,|4}} |'''Voicings:''' {{vcat|{{#explode:{{{2}}}|,|0}}}}, {{vcat|{{#explode:{{{2}}}|,|1}}}}, {{vcat|{{#explode:{{{2}}}|,|2}}}}, {{vcat|{{#explode:{{{2}}}|,|3}}}} or {{vcat|{{#explode:{{{2}}}|,|4}}}}

Revision as of 21:55, 14 September 2012


Documentation

Syntax with required first and second parameters:

  • {{Voicing|5|SSATB}}
which produces the text
Number of voices: 5vv   Voicing: SSATB
and inserts the page in category:SSATB
  • {{Voicing|3|ATB,SSA,STB}}
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:

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



See also: Template:MultiVoicing