Changes

167 bytes added ,  21:19, 3 September 2008
m
capitalizaton note and some code changing
Line 6: Line 6:  
*To add an article to a category put the following '''at the end of the page you are editing''':
 
*To add an article to a category put the following '''at the end of the page you are editing''':
   −
<nowiki>[[Category: Category Name]]</nowiki>
+
<pre>[[Category: Category Name]]</pre>
   −
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.
+
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.
 +
 
 +
Please note that <u>capitalization matters</u>. <code><nowiki>[[Category: Moped Jargon]]</nowiki></code> is different from <code><nowiki>[[Category: Moped jargon]]</nowiki></code>.
    
*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 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 Motobecanes, please see the 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":
   −
<nowiki>[[:Category: Category Name]]</nowiki>  
+
<pre>[[:Category: Category Name]]</pre>  
    
or, following the example:
 
or, following the example:
   −
<nowiki>[[:Category: Motobecane]]</nowiki>
+
<pre>[[:Category: Motobecane]]</pre>
    
*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:
 
*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: Category Name|Sort parameter]]</nowiki>
+
<pre>[[Category: Category Name|Sort parameter]]</pre>
    
So for example, to add this page to the 'Help' category, you would use:
 
So for example, to add this page to the 'Help' category, you would use:
   −
<nowiki>[[Category:Help|Categories]]</nowiki>
+
<pre>[[Category:Help|Categories]]</pre>
    
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>.
3,140

edits