Difference between revisions of "Help:Categories"
Line 2: | Line 2: | ||
− | + | '''Create a category''' | |
− | <nowiki>[[</nowiki>Category:Category name]] | + | To create a category type the following code and syntax: <nowiki>[[</nowiki>Category:Category name]] |
For example, to add the category "Law" to an article, Edit the article and add <tt><nowiki>[[</nowiki>Category:Law]]</tt> to the page. | For example, to add the category "Law" to an article, Edit the article and add <tt><nowiki>[[</nowiki>Category:Law]]</tt> to the page. | ||
+ | |||
+ | '''Placement in entry''' | ||
For the sake of regularity and by convention the category is placed at the very end of an article text. Look at the very bottom of any entry to see what categories it contains, if any. Categories, if they exist, are always displayed in that location. | For the sake of regularity and by convention the category is placed at the very end of an article text. Look at the very bottom of any entry to see what categories it contains, if any. Categories, if they exist, are always displayed in that location. | ||
+ | |||
+ | '''Alphabetical order''' | ||
For the sake of clarity and regularity, categories are listed alphabetically and then numerically, in ascending order, from earliest to latest. | For the sake of clarity and regularity, categories are listed alphabetically and then numerically, in ascending order, from earliest to latest. | ||
+ | |||
+ | '''Existing categories''' | ||
For the sake of regularity, if an appropriate category already exists, use that category. So, before you create a new category, see the list of basic established categories see [[Contents]]. For a complete list of categories, see [[Special:Categories]]. | For the sake of regularity, if an appropriate category already exists, use that category. So, before you create a new category, see the list of basic established categories see [[Contents]]. For a complete list of categories, see [[Special:Categories]]. | ||
− | To add an existing to an entry, Edit that entry and write that category link at the very bottom of that entry. | + | To add an existing category to an entry, Edit that entry and write that category link at the very bottom of that entry. For example, add ......... |
+ | |||
+ | '''Creating new categories''' | ||
− | To create and | + | To create and add a new category to an entry, Edit that entry, write the category link at the bottom of that entry, and Save. For example, add ....... |
+ | |||
+ | (CLARIFY THE FOLLOWING--JNK) | ||
Putting a category link in an entry and saving that entry will automatically create that category and display the page (or pages) that belongs to it. A category page does not need to be created before the creation of a page. | Putting a category link in an entry and saving that entry will automatically create that category and display the page (or pages) that belongs to it. A category page does not need to be created before the creation of a page. | ||
Line 29: | Line 39: | ||
Although a category has multiple articles in it, it will appear as a red link when a description of the category page is empty. | Although a category has multiple articles in it, it will appear as a red link when a description of the category page is empty. | ||
+ | |||
To make the category links appear blue (like existing articles), click on the category link to go to the category page and edit it to add a short description or to add a category to it. | To make the category links appear blue (like existing articles), click on the category link to go to the category page and edit it to add a short description or to add a category to it. | ||
+ | |||
When creating new categories, follow the established conventions. | When creating new categories, follow the established conventions. | ||
+ | |||
+ | |||
+ | '''Category for a person''' | ||
For example, to create a category for a person, use this format Category:Last Name, First Name (year of birth-year of death in the form (yyyy-yyyy). | For example, to create a category for a person, use this format Category:Last Name, First Name (year of birth-year of death in the form (yyyy-yyyy). | ||
Line 40: | Line 55: | ||
− | + | '''Category for a city''' | |
− | + | ||
+ | For cities follow the format Category:State name-City. Then add the Category:State name to the resulting page. | ||
+ | |||
− | For a category to work it must include the exact format, punctuation, and spacing. (When in doubt cut and paste). | + | For a category to work it must include the exact format, punctuation, and spacing. (When in doubt cut and paste an existing category). |
Revision as of 08:38, 11 June 2008
Categories are internal links that, after being added to entries, provide automatic content indexes that help users find the particular content categorized. A category is a feature of MediaWiki software.
Create a category
To create a category type the following code and syntax: [[Category:Category name]]
For example, to add the category "Law" to an article, Edit the article and add [[Category:Law]] to the page.
Placement in entry
For the sake of regularity and by convention the category is placed at the very end of an article text. Look at the very bottom of any entry to see what categories it contains, if any. Categories, if they exist, are always displayed in that location.
Alphabetical order
For the sake of clarity and regularity, categories are listed alphabetically and then numerically, in ascending order, from earliest to latest.
Existing categories
For the sake of regularity, if an appropriate category already exists, use that category. So, before you create a new category, see the list of basic established categories see Contents. For a complete list of categories, see Special:Categories.
To add an existing category to an entry, Edit that entry and write that category link at the very bottom of that entry. For example, add .........
Creating new categories
To create and add a new category to an entry, Edit that entry, write the category link at the bottom of that entry, and Save. For example, add .......
(CLARIFY THE FOLLOWING--JNK)
Putting a category link in an entry and saving that entry will automatically create that category and display the page (or pages) that belongs to it. A category page does not need to be created before the creation of a page.
Although a category has multiple articles in it, it will appear as a red link when a description of the category page is empty.
To make the category links appear blue (like existing articles), click on the category link to go to the category page and edit it to add a short description or to add a category to it.
When creating new categories, follow the established conventions.
Category for a person
For example, to create a category for a person, use this format Category:Last Name, First Name (year of birth-year of death in the form (yyyy-yyyy).
After creating a category page for a person add [[Category:People]] to that page to have it appear in the complete People category Index.
Category for a city
For cities follow the format Category:State name-City. Then add the Category:State name to the resulting page.
For a category to work it must include the exact format, punctuation, and spacing. (When in doubt cut and paste an existing category).
Subcategories
Categories have sub-categories, meaning that you can put a category page inside of another category. Categories can be nested in multiple level in this fashion. For example the "Social Sciences" category may contain a list of categories such as "Sociology", "History", etc. That is how the People category is set up, each category for an individual is sub categoried under People. It also allows so categories to be into several hierarchies for example the Category:Sodomy Law can go under both Category:Sodomy and Category:Law. For questions about how this functions, we suggest you look at how existing Categories have been set up.
Linking to a Category Page
To link to a category page (without adding the page to the category), include a colon before the complete Category page name. For example, [[:Category:People]] renders as Category:People.
Moving a category page
The only way to move a category page is to manually change all category tags that link to the category, and copy the editable part. There is no automatic way to move a category page in the way one moves an article page.