Using Categories: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
(Created page with '= Overview = Categories allow related pages to be grouped together easily. For example, if you have pages A, B, C and D, you could link A to B, C and D, and link B to A, C and D...')
 
No edit summary
Line 1: Line 1:
= Overview =
= Overview =
Categories allow related pages to be grouped together easily.  For example, if you have pages A, B, C and D, you could link A to B, C and D, and link B to A, C and D, and link C to A, B and D, and link D to A, B and C... or you could link A to category X, B to category X, C to category X and D to category X. The more related pages in a category, the better this works.
* Categories allow related pages to be grouped together easily.  For example, if you have pages A, B, C and D, you could link A to B, C and D, and link B to A, C and D, and link C to A, B and D, and link D to A, B and C... or you could link A to category X, B to category X, C to category X and D to category X.
 
* The more related pages in a category, the better this works.
= Categorizing a new page =
= Categorizing a new page =
* First, see if there is an [[:Special:Categories|existing category]] for the page
* First, see if there is an [[:Special:Categories|existing category]] for the page.
* If so, create a link to the category.  For example, this page is about using the wiki, so it belongs in the Wiki category:
* If so, create a link to the category.  For example, this page is about using the wiki, so it belongs in the Wiki category:
<pre>
<pre>
[[Category:Wiki]]
[[Category:Wiki]]
</pre>
</pre>
* If a category belongs in more than one category, create a link for each category.
= Creating a new category =
= Creating a new category =
* If no existing category really fits, make up a new category and create the link:
<pre>
[[Category:Cetaceans]]
</pre>
* Click on the category link and edit the category page.
** Describe what belongs in the category.  Example:
<pre>
Whales, dolphins and related mammals.
</pre>
** If there's something similar that really belongs in a different but related category, point that out and link to the related category.  Example:
<pre>
Seals and walruses are listed under [[:Category:Pinnipeds|Pinnipeds]].
</pre>
** If the category belongs to a larger category (for example, Cetaceans are aquatic mammals), create a link to the larger category:
<pre>
[[Category:Aquatic mammals]]
</pre>
= Linking to a category page ==
= Linking to a category page ==
----
* To link to the Wiki category page, prepend a colon so that the parser sees a link ([[:Category:Wiki]]) instead of a categorization:
 
<pre>
Categories allow you to perform automatic indexing of a number of pages in an alphabetical index listed under the Category page. To start a Category page:
[[:Category:Wiki]]
 
</pre>
Type ''title=Category:Category Name'' instead of just typing a title as above. For example, http://openfarmtech.org/index.php?title=Category:Water . Then, if you embed the construction:
* To change the appearance of a category link, append a vertical bar and the desired text to display ([[:Category:Wiki|Style guide]]):
 
<pre>
[[Image:Filename.jpg]]
[[:Category:Wiki|Style guide]]
 
</pre>
on any page, that page will be listed in an alphabetical index under your category page. This tool is very useful for indexing a large number of related pages, without having to link to all these pages.
= Refactoring categories =
 
* These pages will assist:
 
** [[:Special:Categories|List of all categories]]
== See also: ==
** [[:Special:UncategorizedPages|Pages without categories]]
** [[:Special:UnusedCategores|Categories without pages]]
** [[:Special:UncategorizedCategories|Categories without categories]]
= See also: =
[[Category:Wiki]]
[[Category:Wiki]]

Revision as of 07:35, 15 July 2009

Overview

  • Categories allow related pages to be grouped together easily. For example, if you have pages A, B, C and D, you could link A to B, C and D, and link B to A, C and D, and link C to A, B and D, and link D to A, B and C... or you could link A to category X, B to category X, C to category X and D to category X.
  • The more related pages in a category, the better this works.

Categorizing a new page

  • First, see if there is an existing category for the page.
  • If so, create a link to the category. For example, this page is about using the wiki, so it belongs in the Wiki category:
[[Category:Wiki]]
  • If a category belongs in more than one category, create a link for each category.

Creating a new category

  • If no existing category really fits, make up a new category and create the link:
[[Category:Cetaceans]]
  • Click on the category link and edit the category page.
    • Describe what belongs in the category. Example:
Whales, dolphins and related mammals.
    • If there's something similar that really belongs in a different but related category, point that out and link to the related category. Example:
Seals and walruses are listed under [[:Category:Pinnipeds|Pinnipeds]].
    • If the category belongs to a larger category (for example, Cetaceans are aquatic mammals), create a link to the larger category:
[[Category:Aquatic mammals]]

Linking to a category page =

  • To link to the Wiki category page, prepend a colon so that the parser sees a link (Category:Wiki) instead of a categorization:
[[:Category:Wiki]]
  • To change the appearance of a category link, append a vertical bar and the desired text to display (Style guide):
[[:Category:Wiki|Style guide]]

Refactoring categories

See also: