Help:Categories

From Chemical Engineering @ UP wiki
Jump to: navigation, search

MediaWiki has the ability to sort related pages on so called Category pages.

Adding categories

To add a certain page to a category just add the following line when editing the page:

[[Category:WhichCat|SortStr]]

WhichCat specifies the category into which the is page placed. This category is shown at the bottom of any wiki page belonging to a category (e.g. Category:Help at the bottom of this page).
SortStr is a string specifying the sorting of pages on a category page. Unfortunately category pages sort pages under single letter headings, ie. A, B, etc. But the sorting under that heading is determined by the sorting string (SortStr).

Although the Category command can be added anywhere in the text, it is considered courteous to place it at the end of a page (to help other editors).

Linking

To create a link to a category page, use the following syntax:

[[:Category:Name|Text]]

Name specifies the name of the category you want to link to (this will correspond to WhichCat specified when adding a category).
Text, as with other internal links, this specifies the text to be shown on the link.

Example

[[Category:Help|Category]]

Adds the current page to the Help category and sorts it using the string "Category". Note the bar at the bottom of the page indicating the category.

[[:Category:Help|Help Pages]]

Creates the link to the Help category page (on the next line)...
Help Pages