Template:Namespaced category: Difference between revisions

From Computing Classics Wiki
Fix TemplateData
m 3 revisions imported: All kinds of templates for CCW to emulate AEW's old hard drive stock
 
(One intermediate revision by the same user not shown)
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>
{
{

Latest revision as of 06:14, 24 September 2024

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.

Template parameters[Edit template data]

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
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.