Template talk:Voicing
Jump to navigation
Jump to search
Making third parameter optional
I'd like to suggest an improvement to this template in order to simplify its use: to make optional the use of the third parameter. This can be accomplished with the following addition to the code (in red):
- Number of voices: {{{1}}}vv Voicing: [[:Category:{{{2}}}|{{{3|{{{2}}}}}}]] [[Category:{{{2}}}]]
This way we could use just {{Voicing|4|SATB}} instead of {{Voicing|4|SATB|SATB}}, and still have the option of specifying a third parameter when it ought to be different from the second one.
I'm also working on a way to show 1v instead of 1vv when there's just one voice, but haven't come to a simple solution yet ;) -- CarlosTalk 17:01, 9 April 2008 (PDT)