Template:Cat in use/doc

This template checks whether a category is 'in use', checking various combinations of whether the category exists (is not a redlink) and is populated (has pages in it).

Usage


The second parameter can be used to indicate the comparison performed:
 * returns "1" (true) if the category exists or has members (default);
 * returns "1" (true) if the category exists and has members;
 * returns "1" (true) if the category exists but is empty, or if the category does not exist but has members.

TemplateData
{	"params": { "1": {			"label": "Category", "description": "Category being checked for use", "type": "wiki-page-name", "required": true },		"2": {			"label": "Comparison type", "description": "Whether a category needs to have members, exist, or both", "suggestedvalues": [ "or", "and", "xor" ],			"default": "or", "suggested": true }	},	"description": "Switch that checks whether a category is in use" }