replace old categories with new categories, and create new categories with predefined content (see "function details" subsection for in-depth details)
The categories have been divided in five types:
In total, there would be around 190,000 articles would be edited (some of them would be edited twice or thrice). A list of all the categories to be moved is given below, along with the new content of the category. Currently, the bot is set to create new categories, and edit only the mainspace pages, with exception of "Footballers in <country> by club". These are container categories, and they will be updated as well. eg: for Category:Stade Plabennécois players, the category will be changed from Category:Footballers in France by club → Category:Men's footballers in France by club.
There are hardcoded lists of "old category" → "new category". The bot first goes through the list of old categories, and if new category doesnt exists, then creates it with appropriate content (given below). After the categories are created, then the bot goes through all the articles of each "old category", and replaces the old category with new category, if an article from old category has category(s) containing "women" in it, then the bot skips that article, and adds the entry to a text file. In the same file the bot also adds the articles with "nobots" template on it. ~~ ~~
Category wikitext:
[[Category:Footballers in <country>|+Men]] [[Category:Men's association football players by country|<country>]]
Category wikitext:
{{CatAutoTOC}} [[Category:<nationality> footballers|+Men]] [[Category:<nationality> sportsmen|Footballers]] [[Category:Men's association football players by nationality|<nationality>]] [[Category:Men's footballers in <country>|<nationality>]]
Category wikitext:
This category is for non-<nationality> men's footballers who currently play or have played in <country>. {{CatAutoTOC}} [[Category:Expatriate footballers in <country>|+Men]] [[Category:Men's footballers in <country>]] [[Category:Expatriate men's association football players by country of residence|<country>]]
Category wikitext:
{{CatAutoTOC}} [[Category:Footballers in <country> by club|+Men]] [[Category:Men's footballers in <country>|Club]] [[Category:Men's association football players by club|<country>]]
Category wikitext:
{{non-diffusing|<nationality> men's footballers}} The is a page for <nationality> men's [[Association football|footballers]] who have played abroad at any time during their career. {{CatAutoTOC}} [[Category:<nationality> expatriate footballers|+Men]] [[Category:<nationality> men's footballers|Expatriate]] [[Category:Expatriate men's association football players by nationality|<nationality>]]
replace old categories with new categories, and create new categories with predefined content (see "function details" subsection for in-depth details)
The categories have been divided in five types:
In total, there would be around 190,000 articles would be edited (some of them would be edited twice or thrice). A list of all the categories to be moved is given below, along with the new content of the category. Currently, the bot is set to create new categories, and edit only the mainspace pages, with exception of "Footballers in <country> by club". These are container categories, and they will be updated as well. eg: for Category:Stade Plabennécois players, the category will be changed from Category:Footballers in France by club → Category:Men's footballers in France by club.
There are hardcoded lists of "old category" → "new category". The bot first goes through the list of old categories, and if new category doesnt exists, then creates it with appropriate content (given below). After the categories are created, then the bot goes through all the articles of each "old category", and replaces the old category with new category, if an article from old category has category(s) containing "women" in it, then the bot skips that article, and adds the entry to a text file. In the same file the bot also adds the articles with "nobots" template on it. ~~ ~~
Category wikitext:
[[Category:Footballers in <country>|+Men]] [[Category:Men's association football players by country|<country>]]
Category wikitext:
{{CatAutoTOC}} [[Category:<nationality> footballers|+Men]] [[Category:<nationality> sportsmen|Footballers]] [[Category:Men's association football players by nationality|<nationality>]] [[Category:Men's footballers in <country>|<nationality>]]
Category wikitext:
This category is for non-<nationality> men's footballers who currently play or have played in <country>. {{CatAutoTOC}} [[Category:Expatriate footballers in <country>|+Men]] [[Category:Men's footballers in <country>]] [[Category:Expatriate men's association football players by country of residence|<country>]]
Category wikitext:
{{CatAutoTOC}} [[Category:Footballers in <country> by club|+Men]] [[Category:Men's footballers in <country>|Club]] [[Category:Men's association football players by club|<country>]]
Category wikitext:
{{non-diffusing|<nationality> men's footballers}} The is a page for <nationality> men's [[Association football|footballers]] who have played abroad at any time during their career. {{CatAutoTOC}} [[Category:<nationality> expatriate footballers|+Men]] [[Category:<nationality> men's footballers|Expatriate]] [[Category:Expatriate men's association football players by nationality|<nationality>]]