Jump to content
šŸ—³ļøšŸ–„ļø The Wikimedia Foundation December 2024 Developer Satisfaction Survey closes on the 2025-01-03. This survey helps us measure developer satisfaction, and prioritize work on tools and platforms for our technical contributors.

Template:C

From wikiNonStop
Revision as of 06:28, 4 July 2021 by en>ExE Boss (AddĀ `nsp`Ā parameter)
(diff) ā† Older revision | Latest revision (diff) | Newer revision ā†’ (diff)

[[Special:MyLanguage/Category:{{{1}}}|{{{2}}}]][[:Category:{{{1}}}| ]]

Template documentation

This is the TemplateData documentation for this template used by VisualEditor and other tools.

Category link

Creates a link to a category in the userā€™s language.

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category1

The name of the category (The ā€œCategory:ā€ prefix may be omitted)

Auto value
Stringrequired
Displayed Text2

The displayed text

Lineoptional
Namespace?nsp

Whether to display the ā€œCategory:ā€ namespace prefix, defaults to whether parameter 1 includes the ā€œCategory:ā€ prefix.

Suggested values
0 1 Ā¬
Default
{{#ifeq:{{NAMESPACENUMBER:{{{1}}}|14|1|0}}}}
Auto value
0
Booleanoptional

Examples

No |nsp= parameter
  • {{C|Foo}}Foo
  • {{C|Category:Foo}}Category:Foo
|nsp=0
  • {{C|Foo|nsp=0}}Foo
  • {{C|Category:Foo|nsp=0}}Foo
|nsp=1