Template:Add category if exist/doc

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Includes a category if it exists. Otherwise, does nothing. Useful for avoiding redlinking non-existent categories.

Usage

{{Add category if exist |1= |2= }}

Template parameters

ParameterDescriptionDefaultStatus
1Name of the categoryemptyrequired
2Sort keyemptyoptional

Additional information

The template is intended to be used in the following namespaces: all namespaces

The template is intended to be used by the following user groups: all users