Page MenuHomePhabricator

Support ignoring certain namespaces for redirect.py
Closed, ResolvedPublic

Description

This is related to T234133 but the contrary: Say I want to process double and broken redirects except on some namespaces (e.g. NS_USER and NS_USER_TALK). Instead of specifying a long list (and growing) of namespaces, give Pywikibot a list of namespaces where you do not want the bot to edit.

Suggested in eswiki. Some users would prefer redirect-fixing bots not to edit on NS_USER/NS_USER_TALK and its subpages.

Event Timeline

Change 654412 had a related patch set uploaded (by Xqt; owner: Xqt):
[pywikibot/core@master] [IMPR] use pagegenerators namespace filter for redirect.py

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

Xqt triaged this task as Low priority.Jan 5 2021, 11:41 AM

Suggested in eswiki. Some users would prefer redirect-fixing bots not to edit on NS_USER/NS_USER_TALK and its subpages.

pwb redirect do -ns:not:2,3 -always

should do the job now after this patch.

Change 654412 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] use pagegenerators namespace filter for redirect.py

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