Page MenuHomePhabricator

Cant retrieve mainpage message on English Wiktionary
Closed, ResolvedPublic

Description

So this caught my interest...

$ python3 pwb.py interwiki -wiktionary  -simulate -hintsonly -family:wiktionary -lang:en
Missing main page name
...

It is using

mainpagename = site.mediawiki_message('mainpage')
...pywikibot.Page(site, mainpagename)...

With a bit of debugging added

$ python3 pwb.py interwiki -wiktionary  -simulate -hintsonly
'{{ns:Project}}:Main Page' contains illegal char(s) '{'
Missing main page name
translate: getting default site wiktionary None
title translate hint results: set()
NOTE: Nothing left to do

https://en.wiktionary.org/w/index.php?title=MediaWiki:Mainpage&action=edit shows {{ns:Project}}:Main Page, which it tries to feed into Page&Link and they fail.

https://en.wiktionary.org/w/api.php?action=query&meta=siteinfo shows mainpage is Wiktionary:Main Page.

Event Timeline

jayvdb raised the priority of this task from to Lowest.
jayvdb updated the task description. (Show Details)
jayvdb added a subscriber: jayvdb.

Change 219341 had a related patch set uploaded (by John Vandenberg):
Use mainpage from siteinfo

https://gerrit.wikimedia.org/r/219341

Change 219341 merged by jenkins-bot:
Use mainpage from siteinfo

https://gerrit.wikimedia.org/r/219341

jayvdb claimed this task.

Change 223870 had a related patch set uploaded (by Merlijn van Deen):
Use mainpage from siteinfo

https://gerrit.wikimedia.org/r/223870

Change 223870 merged by jenkins-bot:
Use mainpage from siteinfo

https://gerrit.wikimedia.org/r/223870