There are several improvements we should make before rolling out the lead paragraph move that will reduce the likelihood of an unexpected outcome and allow us to discover edge cases. Reducing the noise in the logs will increase our confidence about deploying. Deploying is only going to increase the volume of logging so we should do our best to clean up beforehand.
Spike notes
This task is the result of the spike T162713. Here is a copy & paste with slight modifications:
I see a little more than 2,000 instances of message:"Found infobox wrapped" at over the last 10 days. Here are some of the page titles logged in logs:
- Rodney Peete - There are two infoboxes on the page and the second one is a child of the first one;
- LNER_Class_A4_4468_Mallard; - the infobox is a direct child of the lead section, but there are other infoboxes inside the main one;
- Portal:Current_events and https://es.wikipedia.org/wiki/Wikipedia:Tablón de anuncios de los bibliotecarios/Portal/Archivo/Protección de artículos/Actual?oldid=98664160 - Considering the page is laid out using tables, I wonder if we need to worry only articles in the Main namespace;
- Bob_Hope_Airport - another case of an infobox within an infobox
- https://bn.wikipedia.org/wiki/%E0%A6%A8%E0%A7%87%E0%A6%A4%E0%A6%BE%E0%A6%9C%E0%A6%BF_%E0%A6%B8%E0%A7%81%E0%A6%AD%E0%A6%BE%E0%A6%B7%E0%A6%9A%E0%A6%A8%E0%A7%8D%E0%A6%A6%E0%A7%8D%E0%A6%B0_%E0%A6%AC%E0%A6%B8%E0%A7%81_%E0%A6%86%E0%A6%A8%E0%A7%8D%E0%A6%A4%E0%A6%B0%E0%A7%8D%E0%A6%9C%E0%A6%BE%E0%A6%A4%E0%A6%BF%E0%A6%95_%E0%A6%AC%E0%A6%BF%E0%A6%AE%E0%A6%BE%E0%A6%A8%E0%A6%AC%E0%A6%A8%E0%A7%8D%E0%A6%A6%E0%A6%B0?oldid=2553697 - infobox within infobox on Bengali wiki
A/C
The goal of the task is to fix the false positives listed above, i.e.
- don't log cases where an infobox is a child of another infobox;
- Only move infoboxes on pages in the main namespace (0) and thus only log infoboxes wrapped in containers on these pages