https://bugzilla.wikimedia.org/show_bug.cgi?id=55260
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Here is an even worse example. Just like in the previous example, create "Template:Pywikipedia test", but this time, make its contents:
Hello.<noinclude>[[Category:AABBCC]]</noinclude><includeonly>[[Category:EE]]</includeonly>
Again, make the article "Test" contain:
{{pywikipedia test}}
Now run:
$ python category.py move -from:"AABBCC" -to:"DD"
In this case, "Template:Pywikipedia test" gets modified completely wrong to become:
Hello.<noinclude></noinclude><includeonly> </includeonly>
[[Category:DD]]
So the category tag for "EE" vanishes completely, and "DD" gets moved outside of the "noinclude" tags.
Piwikipedia's output for this command was:
$ python category.py move -from:"AABBCC" -to:"DD" Target page Category:DD already exists! Getting [[Category:AABBCC]]... Getting 1 pages from vistawiki:en... Sleeping for 5.8 seconds, 2010-09-15 11:28:53 Updating page [[Template:Pywikipedia test]] via API Getting [[Category:AABBCC]]...