Help:Categories: Difference between revisions

no edit summary
No edit summary
Line 32: Line 32:




A red category link indicates that its page has not been created. A blue category link indicates that a page for that category exists.  
=How to Create a Category=
Categories are most powerful when included within templates. Let's look at the Spam template as an example. When a page is flagged with the spam template <nowiki>{{</nowiki>[[Template:Spam]]<nowiki>}}</nowiki>, that page is automatically filed in the Spam category because it is written within the template. When you create a template, include the category within the <nowiki><includeonly></nowiki> tags <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki>.
First: do you need to create one? Sometimes a category very similar to the one you are about to create already exists. Search [[Special:Categories]] for similar categories.
If you want to add another category or a category that doesn't need a template just add </nowiki>[[Category:Category_name]]</nowiki> to the page.
 
In both instances, a Category page will be generated. Search for it and save it. Describe the category and its function.
;If you do not find a similar category or still want to give a page a more specific label :To create a category just type
 
<pre><nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki></pre>
''or''
<pre><nowiki>[[</nowiki>Category:Category_Name<nowiki>]]</nowiki><pre>


=How to Create a Category=
at the bottom of the wiki page you are editing.
[Need to troubleshoot this because 1) Categories are not named correctly 2) Most existing categories are unusable] First: do you need to create one? Sometimes a category very similar to the one you are about to create already exists. Search Special:Categories for similar categories.
If you do not find a similar category or still want to give a page a more specific label:
To create a category just type <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki> or <nowiki>[[</nowiki>Category:Category_Name<nowiki>]]</nowiki> at the end of the wiki page you are editing.


;'''Please do not create categories like this''' <pre>:'''<nowiki>[[</nowiki>Category:Category/Name<nowiki>]]</nowiki>'''</pre>
;'''Please do not create categories like this''' <pre>:'''<nowiki>[[</nowiki>Category:Category/Name<nowiki>]]</nowiki>'''</pre>


;'''Please do not create categories like this''' <pre>:'''<nowiki>[[</nowiki>Category:Category:Name<nowiki>]]</nowiki>'''</pre>
;'''Please do not create categories like this''' <pre>:'''<nowiki>[[</nowiki>Category:Category:Name<nowiki>]]</nowiki>'''</pre>
;'''Please do not create categories like this''' <pre>:'''<nowiki>[[</nowiki>Category:Category:LongerName<nowiki>]]</nowiki>'''</pre>


''''Category names that are incorrect will be changed to the appropriate format''''
''''Category names that are incorrect will be changed to the appropriate format''''
Under Special:Categories you will be able to find your new category. It will be in red text, meaning a path to that link exists but a page has not been saved. Go to the link and '''write a brief summary defining the category'''.


Once saved, the wiki page will now display your new category like the [[image:Category_banner_example.png‎|image above]].
You will also be able to locate your new category under [[Special:Categories]]. In both instances, the link will be in red text.
A red category link indicates that its page has not been created. A blue category link indicates that a page for that category exists.
Categories are most powerful when included within templates. Let's look at the Spam template as an example. When a page is flagged with the spam template <nowiki>{{</nowiki>[[Template:Spam]]<nowiki>}}</nowiki>, that page is automatically filed in the Spam category because it is written within the template. When you create a template, include the category within the <nowiki><includeonly></nowiki> tags <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki>.
If you want to add another category or a category that doesn't need a template just add </nowiki>[[Category:Category_name]]</nowiki> to the page.
In both instances, a Category page will be generated. Search for it and save it. Describe the category and its function.


===How to Add an Existing Category===
To add an existing page, just go to Edit at the top of the wiki page, and add [Category:Category_name] to the end of the page within the wikiText editor.


=How to Add an Existing Category=
To add an existing page, just go to Edit at the top of the wiki page, and add <nowiki>[[</nowiki>Category:Category_name<nowiki>]]</nowiki> to the end of the page within the wikiText editor.


==Subcategories==
==Subcategories==
Line 64: Line 76:


==What a Category Should Not Be==
==What a Category Should Not Be==
Categories are not personal pages.  
Categories are not personal or project pages.  
;'''Please, do not add any user information to a category.'''
;'''Please, do not add any user information or specific project information to a category page.''' :A category page should only include a * brief definition
* its purpose
* an example


;'''Please, do not add user pages to any category.''' :The Verified Users category that lists all WikiMo users is controlled by admins.
;'''Please, do not add user pages to any category.''' :The Verified Users category that lists all WikiMo users is controlled by admins.
Confirmed users, Bureaucrats and Sysops emeriti
176

edits