This template outputs a category if the category exists. Otherwise, it returns nothing. It is intended for use in templates.

This template follows category redirects (using {{resolve category redirect}}).

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for Category if exists

Outputs a link to a category if it exists; otherwise returns nothing.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Category name1

Category for potential inclusion if it exists. "Category:" prefix is optional.

Example
Category:Writers
Page namerequired
Sort key2

[[WP:SORTKEY]] of the category.

Suggested values
*
Example
Foo
Lineoptional


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Category_if_exists/doc&oldid=724026" වෙතින් සම්ප්‍රවේශනය කෙරිණි