https://bugzilla.wikimedia.org/show_bug.cgi?id=55095
Web browser: --- Bug ID: 55095 Summary: Change imagerecat.py to use lists in family file Product: Pywikibot Version: unspecified Hardware: All OS: All Status: ASSIGNED Severity: enhancement Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/feature-requests/177/ Reported by: multichill Created on: 2009-02-13 13:26:33 Subject: Change imagerecat.py to use lists in family file Assigned to: multichill Original description: Imagerecat.py has to be changed to use the redirect template list and the disambigutation template list in the Commons family file:
self.category_redirect_templates = { 'commons': (u'Category redirect', u'Categoryredirect', u'See cat', u'Seecat', u'Catredirect', u'Cat redirect', u'CatRed', u'Cat-red', u'Catredir', u'Redirect category'), }
self.disambiguationTemplates = { 'commons': [u'Disambig', u'Disambiguation', u'Razločitev', u'Begriffsklärung'] }
https://bugzilla.wikimedia.org/show_bug.cgi?id=55095
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/feature-reque | |sts/177
https://bugzilla.wikimedia.org/show_bug.cgi?id=55095
xqt info@gno.de changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEW CC| |info@gno.de
https://bugzilla.wikimedia.org/show_bug.cgi?id=55095
Ricordisamoa ricordisamoa@openmailbox.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ricordisamoa@openmailbox.or | |g Resolution|--- |FIXED
--- Comment #1 from Ricordisamoa ricordisamoa@openmailbox.org --- https://www.mediawiki.org/wiki/Special:Code/pywikipedia/5817#28 already used Page.isDisambig(), but searched the page templates for 'Category redirect' or 'Seecat'. https://www.mediawiki.org/wiki/Special:Code/pywikipedia/8530#254 introduced Page.isCategoryRedirect(), that uses site.category_redirects().
Both changes were already in place when the script was ported to core in 2013.
pywikipedia-bugs@lists.wikimedia.org