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)

Verse anthems

The comma producing "or" is good to know, but would it be easy to produce "and" or even "Verse: SS" with an extra parameter? See for example Nunc Dimittis from the Second Service (Orlando Gibbons) (total no. of vv. = 6?) and Category:Verse anthems. The present way of doing things is to add stuff before the line break, as noted above, but it would be interesting to be able to search for example Bach cantatas or oratorios by the minimum number of soloists. Richard Mix (talk) 23:28, 19 May 2014 (UTC)

Hi Richard, replying to your first question: have you considered using the {{MultiVoicing}} template? I think it can do what you want:
Number of voices: 5vv   Voicings: SAATB  (full) and Solo SSAT  (verse)
The way you did in Nunc Dimittis is also fine, but please use {{vcat}} instead of {{cat}} for voicings. —Carlos (talk) 05:53, 20 May 2014 (UTC)
Aha, I see what vcat does. Seems like Help:CPDL_Templates#Works_templates is due for a rewrite! Was it somehow not feasible to make {{voicing}} do {{MultiVoicing}}'s job, with n=1 as default? Richard Mix (talk) 05:57, 21 May 2014 (UTC)
Thanks for the reminder, I've just updated Help:CPDL Templates with the new templates. Regarding your suggestion to merge both templates, it would be somewhat complex but not impossible :) I need to have a better look at their codes. Best, —Carlos (talk) 20:16, 21 May 2014 (UTC)

N-part music

Parameter 2 seems to have no problem with Category:Solo voice, so it's worth clarifying whether only "A string of letters including only the letters S A T B, with no spaces" gets characters counted and placed in N-part music, or only categories missing from Category:Solo vocal music. Richard Mix (talk) 18:16, 12 July 2021 (UTC)

You are correct, Richard. Thanks for pointing this out. And this is indeed complicated! I have started into describing what might happen, will probably finish tomorrow. — Barry Johnston (talk) 03:04, 13 July 2021 (UTC)
Thanks for all the enhancements to the documentation, Barry! Much better now. —Carlos (talk) 23:47, 15 September 2021 (UTC)