Forum:Pagename autoadd to category

One of our category's on the Dutch RuneScape Wiki contains all images, but they are all categorised as File: (Bestand: in Dutch). Is there any way I can automatically add all those category's with ? It took my bot about 5 hours to add those 6.700+ images to the Image (Afbeeldingen in Dutch) category... And I really don't have the patience for that... Is there any way to do it fast? Tedjuh10 - Talk 17:51, 14 July 2009 (UTC)


 * Maybe with JavaScript, adding (or whatever) at the end of the image description on submit, but won't work for people without JS --Ciencia Al Poder (talk) -WikiDex 19:47, 14 July 2009 (UTC)
 * Try this: At the end of the page you want categorized, place . So, if the page is File:Dragon.png, it would categorize by Dragon, not File. Just fill in the wanted category and that you place that in the description. Muzzy34 20:49, 14 July 2009 (UTC)


 * would work the same, but what Tedjuh10 wants is a way to add that piece of code automatically. --Ciencia Al Poder (talk) -WikiDex 09:38, 15 July 2009 (UTC)


 * Yes, It needs to be done automatically. If there's no other way, I will use my bot, but what command should I use? Tedjuh10 - Talk 11:00, 15 July 2009 (UTC)


 * Depends on what bot you're using. If it's a pywikipedia one, then
 * replace.py -regex -cat:"Images" -namespace:6 "\[\[[Cc]ategory:[Ii]mages\]\]" ""
 * should do. This will set the default sort for images which do not have one specified to what you want. -- Porter21 (talk) 20:26, 17 July 2009 (UTC)


 * Thanks, I'll try it. Tedjuh10 - Talk 12:31, 18 July 2009 (UTC)


 * It loads the images, and then says no changes are needed... It thinks they already have |, but they don't. Tedjuh10 - Talk 12:34, 18 July 2009 (UTC)


 * Well, above command works if the category is named "Images" and the namespaces have English names - I should probably have made that clearer. Did you adapt it to your language/cat name correctly? Should be something like this:
 * replace.py -regex -cat:"Afbeeldingen" -namespace:6 "\[\[[Cc]ategorie:[Aa]fbeeldingen\]\]" ""
 * Otherwise the bot will naturally state that no changes are needed because the string it's looking for does not exist in the description page ;) -- Porter21 (talk) 13:12, 18 July 2009 (UTC)


 * Ah, now it works ;). I did translate it, except for the -namespace part. Thanks! Tedjuh10 - Talk 13:30, 18 July 2009 (UTC)
 * You're welcome. Guess this might take a few hours :) -- Porter21 (talk) 14:05, 18 July 2009 (UTC)