Using Categories: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{ | {{breadcrumb|Wiki}} | ||
'''Categories''' are tags that index all pages marked with that tag on the same page. All pages marked with a particular category can be seen on one page. See [[:Category: Wiki]] for an example where all the pages tagged with the Wiki category are then indexed on one page. This makes it easier for people to find content related to a topic or category. | |||
= | = Categorizing pages = | ||
Categorize pages using the [[Template: Listofcategories|official list of categories]]. Stick to these categories where possible; don't create new categories unless there is a real need. | |||
Categorize pages by placing the [[Template: Breadcrumb|Breadcrumb]] template at the top and passing the category name as parameter. At the top of a page about beekeeping, you would write: | |||
<pre> | <pre> | ||
{{Breadcrumb|Food and Agriculture|Beekeeping}} | |||
</pre> | </pre> | ||
This will do two things: | |||
* | |||
* insert a navigation menu at the top, and | |||
* put the page in the appropriate wiki category | |||
* | If there are other categories that a page could belong to, just add them at the bottom of the page as such: <pre>[[Category: Category_name]]</pre> | ||
<pre> | |||
</pre> | |||
= Linking to a category page = | = Linking to a category page = | ||
To link to a category page, prepend a colon so that the parser sees a link instead of a categorization. For example, writing | |||
<pre> | <pre> | ||
[[:Category:Wiki]] | [[:Category:Wiki]] | ||
</pre> | </pre> | ||
will produce the following: [[:Category:Wiki]] | |||
To change the appearance of a category link, append a vertical bar and the desired text to display, as such: | |||
<pre> | <pre> | ||
[[:Category:Wiki| | [[:Category: Wiki|new text]] | ||
</pre> | </pre> | ||
= | |||
This would yield the following: [[:Category: Wiki|new text]] | |||
= Maintenance = | |||
The following pages help in the maintenance of categories. | |||
* [[:Special:Categories|List of all categories]] | |||
* [[:Special:UncategorizedPages|Pages without categories]] | |||
* [[:Special:UnusedCategories|Categories without pages]] | |||
* [[:Special:UncategorizedCategories|Categories without categories]] | |||
= See also = | = See also = | ||
* [http://www.mediawiki.org/wiki/Help:Categories MediaWiki help on Categories] | * [http://www.mediawiki.org/wiki/Help:Categories MediaWiki help on Categories] | ||
[[Category:Wiki]] | [[Category:Wiki]] |
Revision as of 14:01, 3 May 2011
Categories are tags that index all pages marked with that tag on the same page. All pages marked with a particular category can be seen on one page. See Category: Wiki for an example where all the pages tagged with the Wiki category are then indexed on one page. This makes it easier for people to find content related to a topic or category.
Categorizing pages
Categorize pages using the official list of categories. Stick to these categories where possible; don't create new categories unless there is a real need.
Categorize pages by placing the Breadcrumb template at the top and passing the category name as parameter. At the top of a page about beekeeping, you would write:
{{Breadcrumb|Food and Agriculture|Beekeeping}}
This will do two things:
- insert a navigation menu at the top, and
- put the page in the appropriate wiki category
If there are other categories that a page could belong to, just add them at the bottom of the page as such:
[[Category: Category_name]]
Linking to a category page
To link to a category page, prepend a colon so that the parser sees a link instead of a categorization. For example, writing
[[:Category:Wiki]]
will produce the following: Category:Wiki
To change the appearance of a category link, append a vertical bar and the desired text to display, as such:
[[:Category: Wiki|new text]]
This would yield the following: new text
Maintenance
The following pages help in the maintenance of categories.
- List of all categories
- Pages without categories
- Categories without pages
- Categories without categories