Template:Voicing: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
(enhanced with the ability to display up to 6 voicings)
mNo edit summary
Line 1: Line 1:
<includeonly>'''Number of voices:''' {{switch|{{{1}}}
<includeonly>'''Number of voices:''' {{switch|{{{1}}}
|case: 1=1v
|case: 1=1v
|default={{{1}}}vv}} &nbsp; '''Voicing:''' {{#if:{{{2|}}}
|default={{{1}}}vv}} &nbsp; {{#if:{{{2|}}}
|{{#if:{{#explode:{{{2}}}|,|5}} | {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}}, {{cat|{{#explode:{{{2}}}|,|3}}}}, {{cat|{{#explode:{{{2}}}|,|4}}}} or {{cat|{{#explode:{{{2}}}|,|5}}}}
|{{#if:{{#explode:{{{2}}}|,|5}} |'''Voicings:''' {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}}, {{cat|{{#explode:{{{2}}}|,|3}}}}, {{cat|{{#explode:{{{2}}}|,|4}}}} or {{cat|{{#explode:{{{2}}}|,|5}}}}
|{{#if:{{#explode:{{{2}}}|,|4}} | {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}},  {{cat|{{#explode:{{{2}}}|,|3}}}} or {{cat|{{#explode:{{{2}}}|,|4}}}}
|{{#if:{{#explode:{{{2}}}|,|4}} |'''Voicings:''' {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}},  {{cat|{{#explode:{{{2}}}|,|3}}}} or {{cat|{{#explode:{{{2}}}|,|4}}}}
|{{#if:{{#explode:{{{2}}}|,|3}} | {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}} or {{cat|{{#explode:{{{2}}}|,|3}}}}
|{{#if:{{#explode:{{{2}}}|,|3}} |'''Voicings:''' {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}}, {{cat|{{#explode:{{{2}}}|,|2}}}} or {{cat|{{#explode:{{{2}}}|,|3}}}}
|{{#if:{{#explode:{{{2}}}|,|2}} | {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}} or {{cat|{{#explode:{{{2}}}|,|2}}}}
|{{#if:{{#explode:{{{2}}}|,|2}} |'''Voicings:''' {{cat|{{#explode:{{{2}}}|,|0}}}}, {{cat|{{#explode:{{{2}}}|,|1}}}} or {{cat|{{#explode:{{{2}}}|,|2}}}}
|{{#if:{{#explode:{{{2}}}|,|1}} | {{cat|{{#explode:{{{2}}}|,|0}}}} or {{cat|{{#explode:{{{2}}}|,|1}}}}
|{{#if:{{#explode:{{{2}}}|,|1}} |'''Voicings:''' {{cat|{{#explode:{{{2}}}|,|0}}}} or {{cat|{{#explode:{{{2}}}|,|1}}}}
|{{cat|{{{2}}}|{{{3|{{{2}}}}}}}} }} }} }} }} }}
|'''Voicing:''' {{cat|{{{2}}}|{{{3|{{{2}}}}}}}} }} }} }} }} }}
|[[:Category:Unknown voicing|{{{3|Unknown}}}]] [[Category:Unknown voicing]]}}</includeonly><noinclude>{{prot-temp}}<br>
|'''Voicing:''' {{cat|Unknown voicing|{{{3|Unknown}}}}} }}</includeonly><noinclude>{{prot-temp}}<br>
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #3399ff; padding: 1em 1em 1em 1em; background-color:#ddffdd">
<center><big>'''Documentation'''</big></center>
<center><big>'''Documentation'''</big></center>

Revision as of 01:11, 20 February 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

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