Help:Categories: Difference between revisions

From OS-Tan Collections Wiki
Jump to navigation Jump to search
m (Reverted edits by 217.155.47.86 (Talk); changed back to last version by Rogerhc)
 
m (1 revision(s))
(No difference)

Revision as of 15:24, 24 January 2007

Important note:
When you edit this page, you agree to release your contribution into the Public Domain. If you don't want this or can't do this because of license restrictions, please don't edit.
This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages.


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

nowiki[[Category:{Name}]]/nowiki

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.

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

So for example, to add this page to the 'Help' category, you would use:

nowiki/nowiki

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 codeFirstName LastName/code but within the category you want them listed as codeLastName, FirstName/code.

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!

Template:Languages