Page MenuHomePhabricator

newitem.py should auto-skip certain pages
Open, LowPublicFeature

Description

this script is hardly usable for other namespaces like templates.

It should skip /doc subpages, user namespace, talk pages, subpages in project namespace.


Version: core-(2.0)
Severity: normal

Details

Reference
bz65312

Event Timeline

bzimport raised the priority of this task from to Needs Triage.Nov 22 2014, 3:10 AM
bzimport set Reference to bz65312.

you may use -namespace Option which is already implemented and comes from pagegenerators

-namespace is useful when running for some list of pages (usage of template).
But when running on -namespace:10 or 4 or 100, bot should auto skip subpages

(but not all pages with "/" are subpages (e.g. Template:NHL 2014/15), so when running from -file: bot shoud create these pages too)

Created attachment 15531
Patch for accidenatlly created userpages

When I accidentally forgot to add -namespace:0, bot should'nt create new items for userpages

(note:there is change of default dates too, I am not very familiar with creating patches, so I left it in patch too)

Source:
https://www.wikidata.org/w/index.php?
title=User%3AUnderlying_lk%2Fharvest_template.py&diff=116897965&oldid=116884354

Attached:

You may use our Gerrit uploaded script for patches. I'll have a look on your attachment soon.

-1 on the patch, you should use -namespace for that.

For the subpages we should probably have another filter pagegenerator so that this functionality is available for all programs.

Xqt removed Xqt as the assignee of this task.Jul 17 2015, 5:58 AM
Aklapper triaged this task as Low priority.Feb 4 2022, 8:11 PM
Aklapper changed the subtype of this task from "Task" to "Feature Request".