Jump to content

Help:Category

From Wiktionary, the free dictionary
See also Category on Wikimedia Meta-Wiki.

Quick help:

  • To add an entry to a category, place [[Category:Category name]] on the page.
  • To see all the entries in a category, follow (that is, click on) the hyperlink with the category name located at the bottom of the page.

The categorization facility provided by the MediaWiki software is a powerful tool for automating the creation of lists. Whenever you think of creating a list of words, consider creating a category instead. Unlike lists, categories are updated automatically. There is no need, as there is with lists, to maintain links in two places – the list and the individual entries within it. Categories are very useful for finding similar words or subjects and for finding "gaps".

How-to

How to add pages to categories

The most basic way to add a page to a category is to simply add a wikilink to the full category title; for example, if you wished to add the entry for apple to Category:en:Fruits, you would simply edit the English section of the entry and add [[Category:en:Fruits]] at the bottom.

The category link will not appear in the text of the entry. Instead, a link to the category will appear in a box at the bottom of the entry, and the category page Category:en:Fruits will contain a link to the apple entry.

In entries with multiple language sections, place category links inside the appropriate section. A category relating to English goes in the English section, one relating to Chinese goes in the Chinese section, and so on. (Wiktionary does not put all of the category links at the bottom of the page as Wikipedia does.)

In many cases, categories are added automatically by templates; for example, the {{en-noun}} template adds the entry apple to Category:English nouns.

The following categorisation templates are used in many Wiktionary entries:

To display a category link, either put a colon before the full page name in the wikilink; for example, to create the link Category:Languages, enter [[:Category:Languages]]. Alternatively, a link that shows category syntax can be displayed with the {{category}} or {{cl}} template; for example, {{category|Languages}} (literally) displays [[Category:Languages]].

Using [[Category:Languages]] with no colon at the beginning does not display a link; it simply puts the page in the category.

How to create a category

If a category link appears red when you add the category to a page, this means that category has not yet been used.

For example, suppose you wished to place the term for windsurfing in the Pitjantjatjara language in the category Category:pjt:Water sports. Because this category does not yet exist, it appears in red. To create the category, simply click the red link appearing at the bottom of your entry, add the text {{auto cat}} to the page, and click "Show preview". If the preview contains the usual description expected for this category, go ahead and press "Publish changes". Otherwise, you may need to search for the correct category name (perhaps it is "Watersports"?), or suggest your idea for a new category at Wiktionary:Category and label treatment requests.

Wiktionary's category infrastructure is more complex than on most other wikis. The category hierarchy is for the most part defined in Lua modules under Module:category tree. Only users who are template editors or administrators can edit these modules. If you do not belong to these groups, bring up your proposed changes at Wiktionary:Category and label treatment requests.

Oriented graph

The MediaWiki software does not require that categories form a strict hierarchy. In general, it allows them to form a directed graph. However, with the exception of the maintenance categories, on Wiktionary the intent is for the categories to form an oriented graph with a single root at Category:Fundamental.