Template talk:Voicing

From ChoralWiki
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)

Hi Carlos. I have just implemented your suggestion (I would have done it eventually, since I'm making a major review of templates). One of the major disadvantages of the present template is that it does not handle other frequently encountered situations: (1) the presence of soli, (2) alternate voicings (eg. when different transpositions of a score are given), (3) a mix of the previous two items, (4) various other descriptive words such as "optional". It's a sticky wicket, and the template is probably left as intended for the canonical situation. I'll fix the "v" versus "vv" thing, although previously searches for number of voices made use of the "vv" standard. This, however, is a moot point, since the Wiki search engine ignores search keys of 3 or fewer characters. And that is why I reorganized the Voicing categories by number of voices. -- Chucktalk Giffen 01:44, 10 April 2008 (PDT)
Hi Chuck, thank you. I was unaware of the Wiki search problem, and of the many other variable situations this template should handle to be completely functional. -- CarlosTalk 03:01, 10 April 2008 (PDT)
Hi again! You did a great work with the singular vs plural, thanks a lot! I was trying with #switch and #if, as I saw on Wikipedia, that's why it wasn't working! :) -- CarlosTalk 12:28, 10 April 2008 (PDT)

Line break

Hi Rob, I saw that you added a line break to the template, unfortunately you'll probably have to revert your last edit. There are a few situations in which the line break isn't desirable, as when we have more than one voicing possibility:

{{Voicing|5|SSATB}} or {{cat|SAATB}}<br>

that would appear as

Number of voices: 5vv Voicing: SSATB or SAATB

If you want to keep the line break, perhaps you could change the template to accept a new parameter (the 5th?) for the extra text. Regards, --CarlosTalk 09:43, 13 May 2008 (PDT)

Fair enough. I'll ask the template genius Chuck to do this when he has a moment. --Bobnotts talk 21:17, 13 May 2008 (PDT)