Thread:User talk:CodeCat/Hans/Hant/Hani scripts/reply (6)

Heya James --

I just fixed the issue for the page. As I suspected, is one of the  template family. The template group suffers from an acute case of Too-Clever-By-Half. Changing the code on the page from   to   fixed the problem.

The core issue is that the context label subtemplates such as invoke some overly complicated and fragile template voodoo to call back to, and to pass through any additional template tags included in the same template call. This has proven to be error prone and buggy, not least as the subtemplates must all be maintained individually, so updates to things like scripts or additional parameter names may wind up falling through the cracks. There are 67 templates listed in Category:Usage_context_labels, of which probably 60 of them must be kept updated, which just hasn't happened.

I've been categorically going through any instance I find of context label usage and changing the format from  to , as the root  template is the only one that we can be sure has been kept updated for params and additional unnamed argument pass-throughs.

Cheers,