Topic on User talk:Ladsgroup

Jump to navigation Jump to search
XXN (talkcontribs)

Hi. Please improve the bot code to not create new WD items for soft redirected categories (en:Category:Wikipedia soft redirected categories).

I see this isn't yet explicitly mentioned in WD:N, but we can assume that soft redirected categories aren't notable by themself to create an item for them, just like regular redirects. ;)

Ladsgroup (talkcontribs)

Hey, my bot uses pywikibot and it automatically skips them unless there is a configuration bug or a bug in pywikibot. Can you show me an example to examine?

XXN (talkcontribs)

Ah, I understand now, the list of 'Category redirect' template redirects for en.wp is incomplete in PWB. Use this:

       template_list = {
               u'Category redirect',
               u'Categoryredirect',
               u'Catredirect',
               u'Cat redirect',
               u'Category Redirect',
               u'Cat redir',
               u'Catred',
               u'Cat red',
               u'Cat move',
               u'Category move',
               u'Catr',
       }

Several such category items remained without sitelinks after they were removed, and a clean-up is needed (though not easy, still possible to do with a bot parsing edit summaries which have links to category pages in WP).

XXN (talkcontribs)

A related patch for PWB is on gerrit now.

XXN (talkcontribs)
Reply to "Soft redirected categories"