Revision as of 14:58, 26 August 2026 by Meryam Sahin (talk | contribs) ((username removed) (log details removed))

Categories help classify pages by shared characteristics or topics. A category works like a tag: one or more categories can be assigned to a page to make related content easier to find.
Categories are specific to each wiki. Each wiki can therefore have its own set of categories.

When to use categories

Categories are useful for grouping pages that share a characteristic or topic, regardless of their position in the page hierarchy.
Typical examples include:

  • topic
  • department
  • target audience
  • content type
  • project

Categories and subpages serve different purposes:

  • Subpages organize related pages into a hierarchy.
  • Categories classify pages by shared characteristics or topics.

A page can belong to one or more categories and can also be part of a subpage hierarchy.
Do not use categories to create a hierarchy of topics. Although MediaWiki technically allows hierarchical categories, this approach is not recommended.

Assign a category to a page

A category can be assigned to a page in several ways:

  • in the supplementary area at the bottom of the page
  • using VisualEditor > Page options > Categories
  • using Page tools > ... all actions > Insert category
  • by entering the category directly in wikitext.

In the supplementary area

The supplementary area at the bottom of a page contains the category assignments. With edit permissions, categories can be added or removed using the edit option.

Category assignments in the supplementary area
Category assignments in the supplementary area

In VisualEditor

Categories can be added or removed while editing a page in VisualEditor.

  1. Open the page in VisualEditor.
  2. Select Categories from the page options.
  3. Add or remove categories as needed.
  4. Save the changes.
Categories option in VisualEditor
Categories option in VisualEditor

Using page tools

Categories can also be added or removed from the page tools.

  1. Open the page tools.
  2. Select ... all actions > Insert category.
  3. Add or remove categories as needed.
  4. Save the changes.
Insert category option in the page tools
Insert category

In wikitext

To assign a page to a category, add the following syntax to the page:

[[Category:Production]]

The position of the category tag in the source code does not affect the category assignment. Category tags are commonly placed at the end of the page.
Multiple categories can be assigned to the same page:

[[Category:Production]]
[[Category:Quality management]]

Before assigning a category, check which categories already exist in the wiki. This helps avoid duplicate or similar categories.
For more information about categories and their syntax, see the MediaWiki documentation on categories.

Category pages

Each category has a corresponding category page. The category page lists the pages and media assigned to that category.
For example, assigning a page to Category:Production makes the page appear on the Category:Production category page.
A category can be assigned to pages even if its category page has not yet been created. The category is functional in this case, but the category page itself does not yet contain any content.

Category page
Category page

View available categories

The special page Special:Categories provides a list of categories currently used in the wiki.
Select a category to open its category page.
A category can appear in the list even if its category page has not yet been created. In this case, the category is already assigned to pages, but no content has been added to the category page itself.

Which pages can be categorized?

Whether a page can be categorized depends on its content model. In general, pages with the wikitext content model can be categorized.
The following additional content models can also be categorized:

To create a link to a category page without assigning the current page to that category, add a colon before the Category namespace:

[[:Category:Production]]

Without the initial colon, the syntax assigns the page to the category instead of creating a link to the category page.

Categories and namespaces

Categories and namespaces serve different purposes:

  • Namespaces provide predefined contexts for different types of content.
  • Categories classify content according to shared characteristics or topics.

Categories can contain pages from different namespaces. They do not replace namespaces. For information about organizing pages with subpages, see Subpage.