Template talk:NoComp: Difference between revisions

From ChoralWiki
Jump to navigation Jump to search
Line 9: Line 9:
:Regards, —[[User:Carlos|Carlos]] [[User talk:Carlos|(talk)]] 04:28, 16 September 2019 (UTC)
:Regards, —[[User:Carlos|Carlos]] [[User talk: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)? — [[User:Bcjohnston523|Barry Johnston]] [[User talk:Bcjohnston523|(talk)]] 13:24, 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)? — [[User:Bcjohnston523|Barry Johnston]] [[User talk:Bcjohnston523|(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:
:::<tt><nowiki>{{NoComp|Ave verum corpus|Wolfgang Amadeus Mozart|, KV 618}}</nowiki></tt> will display as {{NoComp|Ave verum corpus|Wolfgang Amadeus Mozart|, KV 618}}
:::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? —[[User:Carlos|Carlos]] [[User talk:Carlos|(talk)]] 18:19, 17 September 2019 (UTC)

Revision as of 18:19, 17 September 2019

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)