Template:Namespaced category: Difference between revisions
From Computing Classics Wiki
Aids auto-categorisation |
Fix TemplateData |
||
| Line 7: | Line 7: | ||
"description": "The name of the category to add if the check succeeds (do not add Category: prefix)", | "description": "The name of the category to add if the check succeeds (do not add Category: prefix)", | ||
"type": "string", | "type": "string", | ||
" | "required": true, | ||
"example": "Buses with unknown VIN" | |||
}, | }, | ||
"namespace": { | "namespace": { | ||
Revision as of 13:23, 26 March 2021
Template documentation (for the above template, sometimes hidden or invisible)
Checks the namespace of the page, and if it matches mainspace (or the number of the given namespace), adds a category.
| 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 |
| Namespace number | namespace | The namespace number to display this category in.
| Number | optional |