Mediawiki category description

From AFSWiki

Jump to: navigation, search

A category is feature in the wiki software, which is distinct from a typical wiki article.

This article briefly describes how mediawiki treats categories. For a more complete description, see the mediawiki manual.

Adding an article to a category

To add an article to a category, the article itself is edited, not the category.

At the bottom of the article to be added, a link is added of the form:

[[Category: category name]]

This then adds a link to the category in a box at the bottom of the article, and this article is then automatically listed on the category page.

Linking to a category page

To create a link to a regular article page, the format, as you may already know is:

[[ article name ]]

However, to link to a category page, the format is:

[[:Category: category name]]

Notice the colon preceding the word "Category." In adding the colon, the article is not added to the category, but instead provides a link to the category page. Often, for readability, the full link format is:

[[:Category: category name | clean category name ]]

... where the clean category name is re-typed, but separated by the vertical bar (above the Enter key on your keyboard).

See Also

Personal tools
February 8 2012
Search Tip
  • "Go" links directly to page
  • <Enter key> = "Go"
  • "Search" displays full text search results