Template:Voicing: Difference between revisions
Jump to navigation
Jump to search
Documentation
(added example) |
(an if is necessary) |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>'''Number of voices:''' {{switch | <includeonly>'''Number of voices:''' {{#switch: {{{1|}}} | ||
| | | 1=1v | ||
|default={{{1}}}vv}} {{#if:{{{2|}}} | | 2| 3| 4| 5| 6| 7| 8| 9|10|11|12|13|14|15|16|17|18|19|20|21 | ||
|{{#if:{{#explode:{{{2}}}|,|5}} |'''Voicings:''' {{ | |22|23|24|25|26|27|28|29|30|31|32|33|34|35|36|37|38|39|40|41 | ||
|{{#if:{{#explode:{{{2}}}|,|4}} |'''Voicings:''' {{ | |42={{{1}}}vv | ||
|{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{ | | =({{cat|Works lacking number of voices|missing}}) | ||
|{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{ | |#default={{{1}}}vv[[Category:Works with varying number of voices]]}} {{#if:{{{2|}}} | ||
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{ | |{{#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}}}} | ||
|'''Voicing:''' {{ | |{{#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}}}} | ||
|'''Voicing:''' {{cat|Unknown voicing|{{{3|Unknown}}}}} }}</includeonly><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}}}} | ||
|{{#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:''' | '''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 | :which produces the text | ||
:: '''Number of voices:''' 5vv '''Voicing:''' | :: '''Number of voices:''' 5vv '''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 | :which produces the text | ||
:: '''Number of voices:''' 3vv '''Voicings:''' | :: '''Number of voices:''' 3vv '''Voicings:''' {{CC|ATB}}, {{CC|SSA}} or {{CC|STB}} | ||
:and inserts the page in [[:category:ATB]], [[:category:SSA]] and [[:category: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:''' | ||
* | *{{tl|Voicing|4|SATB|4=<font color="green">SATB divisi</font>}} | ||
:which produces the text | :which produces the text | ||
:: '''Number of voices:''' 4vv '''Voicing:''' | :: '''Number of voices:''' 4vv '''Voicing:''' {{CC|SATB|SATB divisi}} | ||
:and inserts the page in [[:category:SATB]] | :and inserts the page in [[:category:SATB]] | ||
===See also=== | |||
* [[Template:MultiVoicing]] | |||
}} | |||
[[Category:Templates]]</noinclude> |
Revision as of 18:14, 24 June 2015
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
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
- 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