Template talk:NoComp

From ChoralWiki
Jump to navigation Jump to search

Enhancement, or new template?

This template is very useful and has been used a lot. It would be more convenient if one could display any text, not necessarily including the linked page, like NoCo does, e.g., {{NoComp|Ave verum corpus, KV 618|Wolfgang Amadeus Mozart|Ave verum corpus}} display as Ave verum corpus. But should this be an enhancement to this template, or a new template? If enhancement, then parameters 1 and 2 would be as now, a new parameter 3, and parameters 3–6 would be moved to 4–7.

In the first 2000 pages using NoComp, I found three that used parameters 3-5: Cantionale Sacrum I (where use of these parameters is inefficient), Claudio Monteverdi (used repeatedly and correctly), Il terzo libro de madrigali a cinque voci (Claudio Monteverdi) (used correctly several times). So it appears that not many pages would need changing.

Or maybe a new template would be less disruptive? — Barry Johnston (talk) 22:20, 15 September 2019 (UTC)

Hi Barry, I've made changes to Cantionale Sacrum I in order to avoid the extra parameters. Regardless of the amount of pages using them, I think this template can be changed pretty easily in order to accommodate your suggestion, without the need to create a new one. We can just use a named parameter, as e.g. |disp=
{{NoComp|Ave verum corpus, KV 618|Wolfgang Amadeus Mozart|disp=Ave verum corpus}}
Regards, —Carlos (talk) 04:28, 16 September 2019 (UTC)
Hi, Carlos. Good idea! Could we shorten the parameter name to "d" (because I foresee this feature being used a lot)? — Barry Johnston (talk) 13:24, 16 September 2019 (UTC)
Barry, I just realized that what you intend can be already accomplished with this template, without any modification, by using the Tail/Front features:
{{NoComp|Ave verum corpus|Wolfgang Amadeus Mozart|, KV 618}} will display as Ave verum corpus
The template would have to be changed to include the named parameter only in situations where the displayed text and the work title are completely unrelated. Is that the case? —Carlos (talk) 18:19, 17 September 2019 (UTC)
I've a problem with that publication: http://www.cpdl.org/wiki/index.php/Canzonette_spirituali_a_tre_voci_(Marcantonio_Tornioli) where 20 works are from the same composer and one by another composer. If NoComp is applied, italics are shown, unlike for all other publications, and no byte saved. If I don't use it, the full composer name is redundantly shown twenty times, even if it's part of PageName (but no italics). Shouldn't NoCo be used twenty times and NoComp for the last one? Claude (talk) 12:00, 24 September 2019 (UTC)