Template:Namespaced category overriding/doc

From Australian Enthusiasts Wiki
Revision as of 13:53, 29 January 2022 by TheDragonFire123 (talk | contribs) (Created page with "<templatedata> { "params": { "1": { "label": "Category name", "description": "The name of the category to add if the check succeeds (do not add Category: prefix)",...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category name1

The name of the category to add if the check succeeds (do not add Category: prefix)

Example
Buses with unknown VIN
Stringrequired
Force category option parameter2

For use inside templates. The parameter that your template uses to specify category forcing.

Example
{{{force_cat|}}}
Numbersuggested
Namespace numbernamespace

The namespace number to display this category in.

Default
0
Example
2
Numberoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.