Difference between revisions of "Help:Categories"

From Terra
Jump to: navigation, search
(No difference)

Revision as of 16:23, 2 March 2007

PD 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. See Project:PD help/Copying for instructions. PD


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.

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.

Another way to sort the article in the correct letter without the namespace is

[[Category:Help|{{PAGENAME}}]]

This is extremly helpful when using templates which include a category tag.

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!

Language: English Afrikaans|العربية|asturianu|azərbaycanca|جهلسری بلوچی|български|brezhoneg|català|čeština|dansk|Deutsch|Ελληνικά|Esperanto|español|فارسی|suomi|français|galego|ગુજરાતી|עברית|magyar|Bahasa Indonesia|italiano|日本語|ქართული|ភាសាខ្មែរ|한국어|Ripoarisch|kernowek|македонски|മലയാളം|मराठी|Bahasa Melayu|Nederlands|norsk|occitan|polski|português|português do Brasil|română|русский|සිංහල|slovenčina|slovenščina|shqip|српски / srpski|svenska|தமிழ்|ไทย|Türkçe|українська|Tiếng Việt|粵語|中文|中文(简体)‎|中文(繁體)‎|中文(台灣)‎|