Template:Category handler/doc: Difference between revisions

Ganaram inukshuk (talk | contribs)
Ganaram inukshuk (talk | contribs)
m Category suppression rules and use-cases: suppressed_ns -> excluded_ns (example code had the wrong name)
Line 37: Line 37:
This template can be adjusted to allow or disallow suppression in different namespaces. The example below allows a template to add categories a page within the user namespace, but not templates or modules. Namespaces are delimited using either newlines or semicolons.
This template can be adjusted to allow or disallow suppression in different namespaces. The example below allows a template to add categories a page within the user namespace, but not templates or modules. Namespaces are delimited using either newlines or semicolons.


<code><nowiki>{{category handler | allowed_ns = user | suppressed_ns = template; module}}</nowiki></code>
<code><nowiki>{{category handler | allowed_ns = user | excluded_ns = template; module}}</nowiki></code>


=== Use-case: templates that categorize templates ===
=== Use-case: templates that categorize templates ===