https://bugzilla.wikimedia.org/show_bug.cgi?id=71980
Bug ID: 71980 Summary: Implement ItemPage.makeRedirectPage(self, page) Product: Pywikibot Version: core (2.0) Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: Wikidata Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: maarten@mdammers.nl Depends on: 71979 Web browser: --- Mobile Platform: ---
It's now possible to create ItemPage redirects. We should implement this functionality in Pywikibot too
* action=wbcreateredirect * API module for creating Entity redirects.
This module requires read rights This module requires write rights This module only accepts POST requests Parameters: from - Entity ID to make a redirect to - Entity ID to point the redirect to token - A 'csrf' token retrieved from action=query&meta=tokens This parameter is required bot - Mark this edit as bot This URL flag will only be respected if the user belongs to the group "bot". Example: Turn Q11 into a redirect to Q12: api.php?action=wbcreateredirect&from=Q11&to=Q12
This should be two parts: Part in site and part in page.
In bug 71979 we're tracking Page.makeRedirectPage(self, page)