Template:No article categories in userspace/doc

Usage
Parameter 1 is the category listing. Parameter 2 (optional) is the namespace the user page is intended for.

Thus the template can be wrapped around the categories in a userspace or other draft page, and removed when the page is made live.

If the user forgets to remove the template, the categories will still function.