Categories
-
- Last edited 4 years ago by Bookmanager
-
-
- No status information
You can assign several categories to a page. Categories can be organized as top categories with subcategories. Therefore, it is possible to create a tree structure and thus to build a hierarchical structure.
Contents
What are categories?
Categories work like keywords or tags. Adding categories to a page makes it easier to find the page in the wiki. All pages of the same category are automatically shown on the corresponding category page. For each category that has not been assigned before, the wiki will automatically create a redlink. Once the page has been created by clicking on the redlink, all pages and subcategories are automatically listed on the cagegory page.
Categories are usually created by users. However, in special cases, MediaWiki also assigns auto-generated categories (for example, pages with broken links).
Characteristics
- Tagging
- Multiple categories per page
- Main categories
- Independent of namespaces
Create and assign categories
To create a category or assign a page to an existing category, there are multiple options:
In the title section of the page
The title section contains the category assignment field. Any user with edit rights can click on the edit link to add or remove categories from the page. To view all existing categories with subcategories, you can click on the tree icon. Once you are done, the categories are confirmed with the check mark.
With Visual Editor
In the page options menu of VisualEditor, you can access a Categories menu item. Here you can add and remove category assignments form the page and also add a sortkey to the category.
In Source code
To add a category in source code, the namespace Category is added before the page name.
[[Category:Sales]]
Note: On category pages, umlauts are generally sorted all the way to the back, e.g., "Märchen" after "Muh". You can therefore use the variable {{DEFAULTSORT:sortkey}} to specify an alternative title to be used for sorting (e.g., {{DEFAULTSORT:Maerchen}}).
Links to category pages
Links to a category require a colon before the namespace.
Example: [[:category:new_page]]
If this colon is missing, the article will not be linked to the category page, but the article will be assigned to the corresponding category.
Displays of categories
You can view a list of all wiki categories on the page Special:Categories.
On the page Category:category_name, you will find a list of all the pages and media associated with a particular category.
If you have accessed a previously unavailable (redlinked) category page, you can add a category description to the page. That way, users understand the purpose of the category.
Category manager
The easiest way to manage categories and sub-categories is with the Category manager page (Special:Category_manager
). You can navigate to the Category manager via Global actions.