On Wikipedia, is it possible to automatically merge multiple existing categories into a new category (for example, automatically moving all items in the category [[Flying animals]]
and [[Birds]]
to the category [[Flying birds]]
)? (i.e., all items that belonged to both of those categories would be moved to the new category).
Merging categories on Wikipedia
wikipedia
Related Topic
- Wikimedia Commons – How to Add Multiple Files to a Category
- MediaWiki – How to Filter Files by Multiple Categories on Wikipedia
- Merging duplicate sections on Wikipedia
- Changing the aspect ratio of an image in Wikipedia
- Why Wikipedia doesn’t allow cross-linking
- Tool to clean up Wikipedia articles where there are duplicate references
Best Answer
Yes, it is possible, but not directly on Wikipedia itself. You would need to use Pywikipedia for this.
There is a script in Pywikipedia called
category.py
. Lets say "foo" is the original category and "bar" is the category you want to merge into. Use the following command:This would move all the pages in the "foo" category to the "bar" category. So, if you have multiple categories to merge, you would have to run this script multiple times for all the categories you have.