Template:Detect template/doc

This template is a meta-template, which helps other templates detect whether they are used in the  namespace.

Usage
This template usually takes one or two parameters:

For example, if the template was on a "Template:" page, it would return:
 * On template page

On any other type of page (e.g. "Wikipedia:", "User:") it would return:
 * Not on template page

A typical use is to manage the categorization of template pages. Adding  to a template, for instance, means it would only categorize a page when that page isn't a template page. (The first parameter consists of nothing, so no action taken if/when the template is on a template page.)