Template:Namespaced category: Difference between revisions
From Computing Classics Wiki
Fix TemplateData |
No edit summary |
||
| Line 1: | Line 1: | ||
{{#ifeq: {{NAMESPACENUMBER}}|{{{namespace|0}}}|[[Category:{{{1|Pages calling Template:Namespaced category without a category name}}}]]}}<noinclude>{{Documentation}} | {{#ifeq: {{NAMESPACENUMBER}}|{{{namespace|0}}}|[[Category:{{StripWikitext|{{{1|Pages calling Template:Namespaced category without a category name}}}}}]]}}<noinclude>{{Documentation}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Revision as of 01:26, 27 March 2022
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 |