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
JAnD | |
May 14 2014, 8:43 PM |
F13558: newitem.py.patch | |
Nov 22 2014, 3:10 AM |
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
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Open | Feature | None | T67312 newitem.py should auto-skip certain pages | ||
Resolved | Xqt | T76430 pagegenerator subpage filter |
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:
https://www.wikidata.org/w/index.php?title=User:Reza1615/BOT/new_interwiki.py&diff=14463983&oldid=11183774
Allow creating items only for selected namespaces
https://www.wikidata.org/w/index.php?title=User:Reza1615/BOT/new_interwiki.py&diff=29209299&oldid=28818285
Disallow creating items for all subpages
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.