Changes

Jump to navigation Jump to search
formatting
Line 12: Line 12:  
== How do I create the main categories ==
 
== How do I create the main categories ==
   −
Just say one of your main categories is "Food". In your article called "Bananas", you would include the category tag: [[Category:Food]]. So, just put [[Category:Food]] into the edit window where you're creating or editing the "Bananas" page. It doesn't matter where on the page you put the category tag in the edit window - it'll always appear at the bottom of the page when you're viewing it.
+
Just say one of your main categories is "Food". In your article called "Bananas", you would include the category tag: <nowiki>[[Category:Food]]</nowiki>. So, just put <nowiki>[[Category:Food]]</nowiki> into the edit window where you're creating or editing the "Bananas" page. It doesn't matter where on the page you put the category tag in the edit window - it'll always appear at the bottom of the page when you're viewing it.
    
This will mean that on the article "Bananas" (when viewing, not editing), down the bottom would be "Category: Food". "Food" might be in red here - if you click on it, it will take you to the "Food" category page with an edit window. You will be able to see that "Bananas" is listed there, so if you put in some content such as "this category is about food! you can eat food!" and save, you can see how the category displays - with your description/notes, and then an automatic list of pages categorised under "Food".
 
This will mean that on the article "Bananas" (when viewing, not editing), down the bottom would be "Category: Food". "Food" might be in red here - if you click on it, it will take you to the "Food" category page with an edit window. You will be able to see that "Bananas" is listed there, so if you put in some content such as "this category is about food! you can eat food!" and save, you can see how the category displays - with your description/notes, and then an automatic list of pages categorised under "Food".
Line 18: Line 18:  
*How do I add them to the main page without having the main page show up as an article in the categories?*
 
*How do I add them to the main page without having the main page show up as an article in the categories?*
   −
I assume you mean here: how do you link to categories without categorising the page you're linking from? You need to include a colon before the "Category" in that category tag. So, to link to the "Food" category:
+
You need to include a '''colon''' before the "Category" in that category tag. So, to link to the "Food" category:
<pre>
+
<nowiki>
 
[[:Category:Food]]
 
[[:Category:Food]]
</pre>
+
</nowiki>
That will display as a link to the "Food" category that looks like: "Category:Food". If you want it to just say "Food", then use pipes as you can with any wiki link:
+
That will display as a link to the "Food" category that looks like: "Category:Food".  
<pre>
+
 
[[:Category:Food|Food]] or [[:Category:Food|Go to the Food Category!]]  
+
If you want it to just say "Food", then use pipes as you can with any wiki link: <nowiki>[[:Category:Food|Food]] </nowiki>or <nowiki>[[:Category:Food|Go to the Food Category!]]</nowiki>  
</pre>
+
 
 
whatever appears after the pipe (|) will be your link to what appears before the pipe.
 
whatever appears after the pipe (|) will be your link to what appears before the pipe.
   Line 36: Line 36:  
Just say you want to create a sub-category called "Fruit". You would:
 
Just say you want to create a sub-category called "Fruit". You would:
   −
Go to the "Banana" article, add the category tag: [[Category:Fruit]]. (If you add this after the [[Category:Food]] tag, then at the bottom of the "Bananas" article it will display thus:
+
Go to the "Banana" article, add the category tag: <nowiki>[[Category:Fruit]]</nowiki>. (If you add this after the <nowiki>[[Category:Food]]</nowiki> tag, then at the bottom of the "Bananas" article it will display thus:
 
  Categories: Food |Fruit
 
  Categories: Food |Fruit
   −
Click on the red "Fruit" link in the categories box at the bottom of the "Bananas" article. It will take you to an edit page for the "Fruit" category. To subcategorise "Fruit" in "Food", put <pre>[[Category:Food]]</pre> on that "Fruit" category page you're editing and save.
+
Click on the red "Fruit" link in the categories box at the bottom of the "Bananas" article. It will take you to an edit page for the "Fruit" category. To subcategorise "Fruit" in "Food", put <nowiki>[[Category:Food]]</nowiki> on that "Fruit" category page you're editing and save.
    
Now go to the "Food" category (you should be able to click a link to it in the category box at the bottom of the "Fruit" category). You'll be able to see on the "Food" page now that it has one subcategory: "Fruit", and one article: "Bananas".
 
Now go to the "Food" category (you should be able to click a link to it in the category box at the bottom of the "Fruit" category). You'll be able to see on the "Food" page now that it has one subcategory: "Fruit", and one article: "Bananas".
Line 57: Line 57:  
** :Category:Animals|Animals
 
** :Category:Animals|Animals
 
</pre>
 
</pre>
As you can see it works similar to the linking-to-categories code (with the colon and the pipe), but without the [[square brackets]] usually required in wikicode links. This is a rule specific to the sidebar.
+
As you can see it works similar to the linking-to-categories code (with the colon and the pipe), but without the <nowiki>[[square brackets]]</nowiki> usually required in wikicode links. This is a rule specific to the sidebar.
      Line 81: Line 81:  
When you save that page you'll see that most of them will be in red (if you haven't followed the steps outlined above re: creating/categorising an article).
 
When you save that page you'll see that most of them will be in red (if you haven't followed the steps outlined above re: creating/categorising an article).
   −
With the sitemap, it's a handy way to go in and sub-categorise all your subcats - so, click on "Category:Nuts" and put in a [[Category:Food]] tag to subcategorise it.
+
With the sitemap, it's a handy way to go in and sub-categorise all your subcats - so, click on "Category:Nuts" and put in a <nowiki>[[Category:Food]]</nowiki> tag to subcategorise it.
       
[[Category:Help|Categories]]
 
[[Category:Help|Categories]]

Navigation menu