Difference between revisions of "Help:Categories"

From SME Server
Jump to navigationJump to search
(add suggested categories)
m (suggestion to make your own category, where to find others and highlight add/sort)
Line 1: Line 1:
To add an article to a category put the following at the end of the page you are editing...
+
To '''add an article to a category''' put the following at the end of the page you are editing...
  
 
  <nowiki>[[Category:{Name}]]</nowiki>
 
  <nowiki>[[Category:{Name}]]</nowiki>
Line 11: Line 11:
 
  <nowiki>[[Category:Documentation]]</nowiki>
 
  <nowiki>[[Category:Documentation]]</nowiki>
  
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:
+
But don't let that limit you, add your own, or check the special pages link to the left and look for other categories.
 +
 
 +
 
 +
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:
  
 
  <nowiki>[[Category:{Name}|{Sort}]]</nowiki>
 
  <nowiki>[[Category:{Name}|{Sort}]]</nowiki>

Revision as of 02:44, 20 February 2007

To add an article to a category put the following at the end of the page you are editing...

[[Category:{Name}]]

where {Name} is the name of the category you want to add it to. Any number of category tags may be added to the page - the page will be listed in all of them.

Suggested categories for the SME wiki are:

[[Category:Howto]]
[[Category:Contrib]]
[[Category:Documentation]]

But don't let that limit you, add your own, or check the special pages link to the left and look for other categories.


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}]]

So 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.

Note: 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!