Template:Namespaced category overriding/doc
From Computing Classics Wiki
Checks the namespace of the page, and if it matches mainspace (or the number of the given namespace), adds a category. It also adds an overriding function, where 1 forces categorisation and -1 disables it.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Category name | 1 | The name of the category to add if the check succeeds (do not add Category: prefix)
| String | required |
| Force category option parameter | 2 | For use inside templates. The parameter that your template uses to specify category forcing.
| Number | suggested |
| Namespace number | namespace | The namespace number to display this category in.
| Number | optional |