This template is for use in other templates in conjunction with namespace detection. It adds pages to Category:Pages with templates in the wrong namespace. This template has been designed to ignore pages that are not redirects.
1st parameter
The 1st parameter inserts text in the message to specify in which namespace the redirect in question should (or should not) be categorized.
Note: Two pipes together are used to yield an "empty" 2nd parameter.
produces:
Example text.
The above rcat template should only be used to categorize redirects that are outside the help namespace.
In the above example, transcluding the message box will categorise pages outside the help namespace into Category:Example category, and for pages that are in the help namespace will produce this template's error message beneath the message box and populate Category:Pages with templates in the wrong namespaceinstead ofCategory:Example category. If a second namespace must be specified, then turn the empty 2nd parameter into a namespace link: