Wikia

Memory Alpha

HighwindBot/ImageCategorization

Discuss0
36,853pages on
this wiki

< User:HighwindBot

Function Edit

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

Code snippet Edit

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[[Category:Memory Alpha images]]'),
        ],
    },

Around Wikia's network

Random Wiki