Template:Cat

This template is to be used within templates that add categories to transcluded pages. It ensures that only pages of a specific namespace get added to the category.

Usage
namespace
 * – namespace for which pages are to be added to category
 * see lists at w:Help:Namespace and MW:Help:Magic words
 * use "0" for main namespace
 * – the name of the category
 * exclude "Category:", e.g. for "Category:Images", just write "Images"
 * – optional variable, the sort key
 * for more info on sort keys, see WP:Wikipedia:Categorization

Examples: