Last modified: 2014-11-02 12:51:40 UTC
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\)
r9672 enables short interwiki links but replaces the page title to the MediaWiki:Mainpage message
- **assigned_to**: nobody --> xqt
- **priority**: 5 --> 4
Is this useful? Most mainpages are protected aren't they? Why don't we just have the bot ignore/skip mainpages altogether?
I guess it is usefull if the bot can handle with links like \[\[:en:\]\] rather than giving an error. It is able to create a page objekt. And this could be used indepedent from operating on the main page itself.
With at least https://git.wikimedia.org/commit/pywikibot%2Fcore.git/71ccd1267c2407fc3fea1210c5f442edb7f6d9c3 Link.parse supports interwiki links without any title (so [[en:]] for example). So the bot ifself should substitute '' with the mainpage. I previously wanted to add it but John pointed out that it's problematic: https://gerrit.wikimedia.org/r/#/c/161671/1/pywikibot/page.py,cm So I'm not sure what we can do about that here. Maybe Page.__init__ does change '' automatically to mainpage or so.