Page MenuHomePhabricator

AWB: suggested new genfix: malformed citation templates
Open, In Progress, Needs TriagePublicFeature

Description

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

Event Timeline

rev 12816 does newlines in template name (plus Unicode nonbreaking space/IDEOGRAPHIC SPACE which also come up in your insource searches).

"Missing braces after template" is already covered, to the extent we reasonably can, by the UnbalancedBrackets fixing within genfix.

Rjwilmsi changed the task status from Open to In Progress.Feb 3 2025, 7:55 AM
Rjwilmsi claimed this task.
This comment was removed by Rjwilmsi.