https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
Web browser: --- Bug ID: 55041 Summary: Cosmetic_changes.py deletes cross wiki-links Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: enhancement Priority: Unprioritized Component: interwiki.py Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/296/ Reported by: Anonymous user Created on: 2011-12-26 21:47:33 Subject: Cosmetic_changes.py deletes cross wiki-links Original description: Python 2.6.7 (r267:88850, Sep 19 2011, 13:25:28) [GCC 4.5.2] config-settings: use_api = True use_api_login = True unicode test: ok
1. I ran in RU-wiki one command: python /home/$USERNAME/pywiki/cosmetic_changes.py -lang:ru -always -file:/tmp/somefile
2. File "/tmp/somefile" contain list of articles for processing Struthiomimus QoS
3. For article "Struthiomimus" in RU-wiki I see, that it was deleted EN cross-link [[en:Steveville|Steveville]] https://secure.wikimedia.org/wikipedia/ru/w/index.php?title=Struthiomimus&am...
4. I think, that cosmetic_changes.py should not deletes cross-links to other wikis.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Error with "standardizePageFooter". When I comment line # text = self.standardizePageFooter(text) in file cosmetic_changes.py then I can't reproduce error.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **labels**: --> 745455
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- It seems, it the same issue as https://sourceforge.net/tracker/?func=detail&aid=3012516&group%5C_id...
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **status**: open --> open-duplicate
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- This may be caused by the same code but the desired effect is slightly different, so it's not entirely a dup - but it is obviously related. In this case though, cosmetic_changes.py should convert [[en:Steveville|Steveville]] to [[:en:Steveville|Steveville]] because it's in the body of the article rather than treating it as an interwiki language link.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #6 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **priority**: 5 --> 7 - **status**: open-duplicate --> open
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #7 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Like mediawiki software pwb interprets [[en:Steveville|Steveville]] as a interwiki link not as a crosswiki link. These must be writen as [[:en:Steveville|Steveville]] . I do not see anything wrong with the bot.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #8 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **assigned_to**: nobody --> xqt - **status**: open --> pending-invalid
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #9 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- It's still a bug to remove a link that isn't supposed to be removed, even if the link is improperly formed. The bug isn't invalid, it's just not possible to overcome by normal means (as someone pointed out to me on IRC, users sometimes put real interwiki language links in the body because they don't know the correct place. Though, it would probably be possible to get the bot to avoid these.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #10 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- If this link is the only iw link to another side it will be re-placed to the bottom of the page. Otherwise it will be deleted (which is an other bug tracker). The given issue is indeed wrong. I was not a inline interwiki link as you proposed, it was a malformed crosswiki link. Maybe interwiki always should start at the beginning of a new line, which must be supported by mw software. But here are several wikis which place interwiki on one line and/or on top of a page. See some switches in the config.py.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #11 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Moved to feature request: Maybe it is an idea to fix crosswiki link inside a text. But we should remember: interwiki links does not always start on a new line. They could placed on a single line; this is set by family.interwiki_on_one_line.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
--- Comment #12 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **priority**: 7 --> 5 - **labels**: 745455 --> interwiki - **assigned_to**: xqt --> nobody - **status**: pending-invalid --> open
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/296
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Low CC| |ladsgroup@gmail.com Summary|Cosmetic_changes.py deletes |Cosmetic_changes.py deletes |cross wiki-links |poorly formatted cross | |wiki-links
https://bugzilla.wikimedia.org/show_bug.cgi?id=55041
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ricordisamoa@openmailbox.or | |g Resolution|--- |DUPLICATE
--- Comment #13 from Ricordisamoa ricordisamoa@openmailbox.org ---
*** This bug has been marked as a duplicate of bug 55298 ***
pywikipedia-bugs@lists.wikimedia.org