Help:Categories
Adding pages to categories just requires a bit of wiki code at the end of each page.
Contents |
How to add pages to categories
To add a page to a category, put the following at the end of the page:
[[Category:Name]]
For Name, type the name of the category you want to add the page to. Any number of category tags may be added to the page, and the page will be listed in all of them.
According to the WHTwiki style guide, category and page titles should have only the first letter capitalized as well as words that should always be capitalized, such as proper names.
How to choose categories for pages
First, look through the current categories. If one or more of them is suitable for the page, add the category(ies) to the page.
If you don't see any current categories for the page, create a new category. Follow the How to add pages to categories instructions, and enter a new category name where the category name goes.
How to name categories
Use words that people will look for when searching for that category. Avoid words that don't add more meaning, for example, some.
How to sort pages in category listings
You can also specify an additional {Sort} parameter that dictates where the page will appear alphabetically within the category. This is achieved by using the following markup:
[[Category:Name|{Sort}]]
For example, to add this page to the Help category, you would use:
[[Category:Help|Categories]]
Note that we used 'Categories' as the sort parameter. Without this, the page would be listed under 'H' for 'Help:Categories', instead of under 'C', which is more useful. Other situations where you might want to use the sort parameter is when you have articles about people that are titled as FirstName LastName, but within the category, you want them listed as LastName, FirstName.
The {sort} parameter does not affect how the page title is displayed within the category listing, just how it is ordered. In the above example, the link to this page will still be 'Help:Categories' and not 'Categories' as you might expect.
See also
- Categories: a list of WHTwiki categories
- Starting a new page
- Topics for WHTwiki
Share / Bookmark this page:
Thanks to this contributor for creating this article for our web hosting community:
Web Hosting Wiki article text shared under a Creative Commons License.


