Template:Incorrect redirect template/doc

Usage
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 certain pages. It will not categorize nor show its notice box on:
 * sub-pages titled:
 * doc
 * sandbox
 * testcases
 * project pages titled:
 * Sandbox
 * Template messages/Redirect pages
 * WikiProject Scouting/Templates
 * template pages titled:
 * Redirect template
 * This is a redirect
 * All redirect category (rcat) templates that would show this error on redirect pages – especially on redirect pages in template space – such as mainspace-only redirects. This is done so that the This is a redirect template may be illustrated on those rcat template pages without display of this error notice.

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.

Example 1



 * produces:


 * In the above example, transcluding the message box will categorize redirects in the help namespace into, and for pages outside the help namespace will produce this template's error message beneath the message box and populate instead of.

2nd parameter
The 2nd parameter inserts text in the message to specify a second namespace in which the redirect in question should (or should not) be categorized.

Example 2



 * produces:


 * In the above example, transcluding the message box will categorize pages in the help namespace or the main namespace into, and for pages outside the help namespace or mainspace will produce this template's error message beneath the message box and populate instead of.

3rd parameter
This parameter is used when the text should read "" (instead of "in" ...).

Example 3

 * Note: Two pipes together are used to yield an "empty" 2nd parameter.
 * produces:


 * In the above example, transcluding the message box will categorise pages outside the help namespace into, and for pages that are in the help namespace will produce this template's error message beneath the message box and populate instead of .  If a second namespace must be specified, then turn the empty 2nd parameter into a namespace link:


 * Example 3.1:
 * produces:


 * Also note that "or" is changed to "and" (help namespace "and" the main namespace).