https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
Web browser: --- Bug ID: 55235 Summary: Treat code-only interwikis as valid for main page Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: normal 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/bugs/1344/ Reported by: Anonymous user Created on: 2011-09-19 11:07:11 Subject: Treat code-only interwikis as valid for main page Assigned to: xqt Original description: Interwiki in the form of [[en:]] links to the main page.
It is easy to generate (on Toolserver or from SiteMatrix) a list of interwikis in this form for the main page and they are correct links.
So the bot must not remove them nor change them.
Suggesting the following process: 1) Pull MediaWiki:Mainpage and store it in some variable. 2) When dealing with interwiki, first compare, if the page title == that variable. 3) If yes, simply put short interwikis there (or at least do not remove nor correct them to long)