Categories¶
Categories are the preferred way to organise pages in MediaWiki.
Warning
Definition: « Category »
Categories are pages defined in the Category:
namespace and allow for organizing mediawiki pages in predefined categories.
Quelle: Eigene Definition angelehnt an https://www.mediawiki.org/wiki/Help:Categories
Working with Categories¶
Creating a new Category¶
For creating a new category, create a new mediawiki page in the Category
namespace and give the new category a distinct name
Enter additional information about the category on its page
Adding wikipages to a category¶
To make a mediawiki page a member of a category, add a link to the category on the page
Category Hierarchies¶
Mediawiki allows to build category hierarchies, i.e., it employs super- and sub-category concepts to resemble the ‘broader’ and ‘narrower’ relationships between categories known from taxonomical classification systems.
In order to make a category a sub-category of another category, add [[Category:{Super_category}]]
to the sub-category page.
Example:
Note
Please note that category hierarchy can be any graph (multi-inheritance, cycles, etc.)
Linking to a Category¶
To create a link to a category, use a leading colon before the category name (without this colon, the current page would be added to the category):
To change the link text, write the text inside the link tag after a pipe:
-
Category links can be placed at any location at a wiki page. However, due to maintenance and consistency reasons, it is good practice to define distinct locations in wiki pages for specifying category memberships. ↩