Changes

543 bytes added ,  12:58, 20 February 2021
Added info on the visual category editor
Line 1: Line 1:  
{{TOCright}}
 
{{TOCright}}
 
==When to Use Categories==
 
==When to Use Categories==
At least one category should '''always''' be included on each page. Don't go crazy with categories, but try to include all appropriate ones for the article you're working on. If you aren't sure which category (categories) are appropriate, you can view them all [[Special:Categories|here]] and try to determine the best fit for your article.
+
At least one category should '''always''' be included on each page. Don't go crazy with categories, but try to include all appropriate ones for the article you're working on. If you aren't sure which category (categories) are appropriate, you can view [[Special:Categories|the full list of categories]] and try to determine the best fit for your article.
    
==How to Use Categories==
 
==How to Use Categories==
 
===Adding an Article to a Category===
 
===Adding an Article to a Category===
To add an article to a category put the following '''at the end of the page you would like categorized''' (do <u>NOT</u> edit the category page itself!):
+
To add an article to a category put the following '''at the end of the page you would like to categorize''' (do <u>NOT</u> edit the category page itself!):
    
<pre>[[Category: Category Name]]</pre>
 
<pre>[[Category: Category Name]]</pre>
   −
where <code>Category Name</code> 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.
+
where <code>Category Name</code> 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 associated with all of them.
    
Please note that <u>capitalization matters</u> for all letters ''after the first letter of the category's name''. <code><nowiki>[[Category: Moped Jargon]]</nowiki></code> is the same as <code><nowiki>[[Category: moped Jargon]]</nowiki></code> but is different from <code><nowiki>[[Category: Moped jargon]]</nowiki></code>.
 
Please note that <u>capitalization matters</u> for all letters ''after the first letter of the category's name''. <code><nowiki>[[Category: Moped Jargon]]</nowiki></code> is the same as <code><nowiki>[[Category: moped Jargon]]</nowiki></code> but is different from <code><nowiki>[[Category: Moped jargon]]</nowiki></code>.
    
===Linking to a Category===
 
===Linking to a Category===
Sometimes you'll want to link to a category, but you won't want the page to actually appear in the category. For example, if you are editing the Puch page and you want to add, "If you are looking for information on Motobecanes, please see the [[:Category:Motobecane|Motobecane category]]," you obviously don't want the Puch article to appear in the Motobecane category. To fix this issue, add a colon before "Category":
+
Sometimes you'll want to link to a category, but you won't want the page to actually appear in the category. For example, if you are editing the Puch page and you want to add, "If you are looking for information on Motobecane's, please see the [[:Category:Motobecane|Motobecane category]]," you obviously don't want the Puch article to appear in the Motobecane category. To fix this issue, add a colon before "Category":
    
<pre>[[:Category: Category Name]]</pre>  
 
<pre>[[:Category: Category Name]]</pre>  
Line 37: Line 37:  
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 gangs that are titled as <code>The GangName</code> but within the category you want them listed as <code>GangName, The</code>.
 
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 gangs that are titled as <code>The GangName</code> but within the category you want them listed as <code>GangName, The</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!''
+
''Note: the {sort} parameter does '''not''' affect how the page title is displayed within the category listing, just how it is ordered in relationships to other categories. In the above example, the link to this page will still be 'Help:Categories', and not 'Categories'.''
    
==Making New Categories==
 
==Making New Categories==
Line 44: Line 44:  
#Go to one of the pages that you would like to see listed in the category you're trying to create. Edit that page with the following text: <code><nowiki>[[Category: Desired name]]</nowiki></code>. After you save that page, you will see a new red link at the bottom that says <code>Category: Desired name</code>. Click on this red link, type in a description for your new category, save the category page, and admire your new category and newly categorized article.  
 
#Go to one of the pages that you would like to see listed in the category you're trying to create. Edit that page with the following text: <code><nowiki>[[Category: Desired name]]</nowiki></code>. After you save that page, you will see a new red link at the bottom that says <code>Category: Desired name</code>. Click on this red link, type in a description for your new category, save the category page, and admire your new category and newly categorized article.  
   −
{{Help}}
+
== Visual Editor ==
 +
[[File:Wiki-category-editing.png|alt=Visual category editor|thumb|Visual category editor]]
 +
The visual editor now offers an interface to add/remove categories. One of the advantages of using the visual interface is the ability to search through all existing categories. Making a change in this visual interface will then write the appropriate wikitext (detailed above) for you.
 +
 
 +
You can find this category interface by opening the the "triple-line" menu on the visual editor toolbar.{{Help}}
 
[[Category: Help|Category]]
 
[[Category: Help|Category]]