This is a suggestion for new genfixes to be added to AWB/JWB.
They would detect and fix certain malformed citation templates which cause a reference to display mangled wikitext rather than invoking the template.
There are three specific cases: newline in template name; single brace introducing template; missing braces after template. The first of these can be extended easily to templates other than citation templates.
Cirrus searches for affected articles, suggested AWB regexes and replacements are in https://en.wikipedia.org/w/index.php?oldid=1031469286
Description
Description
Event Timeline
Comment Actions
rev 12816 does newlines in template name (plus Unicode nonbreaking space/IDEOGRAPHIC SPACE which also come up in your insource searches).
Comment Actions
"Missing braces after template" is already covered, to the extent we reasonably can, by the UnbalancedBrackets fixing within genfix.
This comment was removed by Rjwilmsi.