Last modified: 2014-05-30 09:24:05 UTC
this script is hardly usable for other namespaces like templates. It should skip /doc subpages, user namespace, talk pages, subpages in project namespace.
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 [details] 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
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.