Template:Category ifexist

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Category ifexist/doc.


Places a page in a category if that category exists. Otherwise does nothing.

Usage

{{Category ifexist |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1categorynameName of the category without the "Category:" prefix.emptyrequired
2optionalsortkeySort key for the categorization.emptyoptional

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

Example

{{Category ifexist|Volcanic eruptions in 1794}}

renders as: