Template:Category ifexist
Jump to navigation
Jump to search
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
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | categoryname | Name of the category without the "Category:" prefix. | empty | required |
2 | optionalsortkey | Sort key for the categorization. | empty | optional |
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: