Page MenuHomePhabricator

category.py doesn't work properly with subpages in template namespace like /doc
Closed, ResolvedPublic

Description

Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/329/
Reported by: reza1615
Created on: 2013-01-31 20:21:16
Subject: category.py dosen't work properly for template namespace
Original description:
category.py doesn't work properly for template namespace and it don't remove or change categories from /doc sub-page
please add some codes to check if category is not in the template page it goes to /doc page


Version: unspecified
Severity: enhancement
See Also:
https://sourceforge.net/p/pywikipediabot/feature-requests/329

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:14 AM
bzimport set Reference to bz55017.
bzimport added a subscriber: Unknown Object (????).

Please be aware that "/doc" subpage has different identifier on several sites.

Still to be done: add self.doc_subpages in family_files.

Only wikipedia and wikisource are done.

See https://github.com/wikimedia/pywikibot-core/blob/master/pywikibot/families/wikipedia_family.py#l561

As already noted, wikipedia and wikisource done in https://gerrit.wikimedia.org/r/#/c/166258/

wikidata and commons done in https://gerrit.wikimedia.org/r/#/c/166864/

wikiquote and wikibooks and wiktionary are the main ones yet to be done.

Change 265643 had a related patch set uploaded (by Mpaa):
Add Template documentation subpage in family files

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

Change 265643 merged by jenkins-bot:
Add Template documentation subpage in family files

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

category.py currently says:

# Categories for templates can be included in <includeonly> section
# of Template:Page/doc subpage.
# TODO: doc page for a template can be Anypage/doc, as specified in
#    {{Template:Documentation}} -> not managed here
# TODO: decide if/how to enable/disable this feature

do we want to create sub-tasks for those?

Change 427947 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [IMPR][bugfix] Resolve multiple issues with category.py

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

Dvorapa raised the priority of this task from Low to Medium.

Change 427947 merged by jenkins-bot:
[pywikibot/core@master] [IMPR][bugfix] Resolve multiple issues with category.py

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

Dvorapa closed this task as Resolved.EditedMay 17 2018, 1:58 PM

This should be resolved for Add, Move, Remove and Tidy. Listify and Tree work in a different way probably. Feel free to reopen if any problem will arise