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)
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- r9672 enables short interwiki links but replaces the page title to the MediaWiki:Mainpage message
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
--- Comment #2 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **assigned_to**: nobody --> xqt
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
--- Comment #3 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **priority**: 5 --> 4
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
--- Comment #4 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- Is this useful? Most mainpages are protected aren't they? Why don't we just have the bot ignore/skip mainpages altogether?
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
--- Comment #5 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- 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.
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/1344
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |info@gno.de
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |Low CC| |ladsgroup@gmail.com Severity|normal |enhancement
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jayvdb@gmail.com Component|interwiki.py |General
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |easy
https://bugzilla.wikimedia.org/show_bug.cgi?id=55235
Fabian CommodoreFabianus@gmx.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |CommodoreFabianus@gmx.de
--- Comment #6 from Fabian CommodoreFabianus@gmx.de --- With at least https://git.wikimedia.org/commit/pywikibot%2Fcore.git/71ccd1267c2407fc3fea12... 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.
pywikipedia-bugs@lists.wikimedia.org