Page MenuHomePhabricator

AWB adds a curly bracket to another single curly bracket and breaks the template
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Enable 'Apply general fixes'.
  • Add a random 'Find and replace' (I used FIND \{\{ *(d|D)ate( de naissance| de décès)*- *\|([^\}]*)\| *(en|à|aux*|dans|par) [^\|\}]* REPLACE {{$1ate$2|$3, but it doesn't seem to matter).
  • Edit a page with a template containing a single closing curly bracket (e.g. this version of a page, the lonely curly bracket is in the infobox title : Kommunioun}).

What happens?:
AWB adds another curly bracket that closes the template too early, breaking it (e.g. this edit )

What should have happened instead?:
AWB should remove that lonely curly bracket, or leave it alone for another bot.
A check of missing openning or closing double curly brackets should be made before and after the change.
Other information (browser name/version, screenshots, etc.):
I used it on a tabletop PC with Windows 10 and Firefox 142.0.1 (64 bits), but I don't think it matters.

Event Timeline

Izno renamed this task from https://phabricator.wikimedia.org/maniphest/task/edit/form/43/ to AWB closes "templates" that sometimes shouldn't be closed.Sep 4 2025, 10:18 PM
SyntaxTerror renamed this task from AWB closes "templates" that sometimes shouldn't be closed to AWB adds a curly bracket to another single curly bracket and breaks the template.Sep 5 2025, 9:03 PM

OK, so we have:

{{Infobox Cinéma (film)
 | titre           = Kommunioun}
 | langue du titre = lb
...
}}

So it's a single } at end of a template parameter, with no { or } within it. Better course of action would be to delete the }.