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 [[ https://logstash.wikimedia.org/app/kibana#/discover?_g=(refreshInterval:(display:Off,pause:!f,value:0),time:(from:'2017-04-13T15:43:43.192Z',mode:absolute,to:'2017-04-25T15:43:43.192Z'))&_a=(columns:!(_source),index:'logstash-*',interval:d,query:(query_string:(analyze_wildcard:!t,query:'message:%22Found%20infobox%20wrapped%22')),sort:!('@timestamp',desc)) | over the last 10 days ]]. Here are some of the page titles logged in logs:
1. [[https://en.m.wikipedia.org/wiki/Rodney_Peete?oldid=773172112 | Rodney Peete ]] - There are two infoboxes on the page and the second one is a child of the first one;
2. [[https://en.m.wikipedia.org/wiki/LNER_Class_A4_4468_Mallard?oldid=774123512 | LNER_Class_A4_4468_Mallard ]]; - the infobox is a direct child of the lead section, but there are other infoboxes inside the main one;
4. [[https://en.m.wikipedia.org/wiki/Portal:Current_events?oldid=666315071 | 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;
5. [[https://en.m.wikipedia.org/wiki/Bob_Hope_Airport?oldid=776929199 | Bob_Hope_Airport]] - another case of an infobox within an infobox
6. [[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