User:HighwindBot/ImageCategorization

Function
Adds a category link to Category:Memory Alpha images to all images that aren't categorized yet.

Code snippet
The following can be added to the fixes at fixes.py, then be called using
 * replace.py -fix:imgcat -start:File:!

ATTENTION: Make sure to only run this on pages in "File:" namespace!

'imgcat': { 'regex': True, 'exceptions': ['Category:Memory Alpha images'], 'msg': { 'en':u'categorizing images', },       'replacements': [ (u'\n(.*)\Z', u'\n\\1\n'), ],   },