jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/370368 )
Change subject: Don't create Wikidata items for category redirects ......................................................................
Don't create Wikidata items for category redirects
They are not allowed in Wikidata: https://www.wikidata.org/wiki/Wikidata:Notability/Exclusion_criteria
*T172621
Change-Id: Ie7c8f4204b1af1beb3260bd59f542743a9052552 --- M scripts/newitem.py 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: jenkins-bot: Verified Xqt: Looks good to me, approved
diff --git a/scripts/newitem.py b/scripts/newitem.py index f650b40..ad1e0bf 100755 --- a/scripts/newitem.py +++ b/scripts/newitem.py @@ -109,6 +109,9 @@ u'Page creation of %s on %s is too recent. Skipping.' % (page, page.editTime().isoformat())) return + if page.isCategoryRedirect(): + pywikibot.output('%s is a category redirect. Skipping.' % page) + return
if page.langlinks(): # FIXME: Implement this
pywikibot-commits@lists.wikimedia.org