Problem: In order to avoid unwanted pages from polluting categories intended for other namespaces, we waste our time and effort manually removing or commenting out [[Category:...]] and coding templates so that they add categories only in certain namespaces.
Proposed solution: A magic word or extension tag to be used inside category wikitext that determines which namespaces are allowed (or not allowed) in the category.