Using Categories: Difference between revisions

From Open Source Ecology
Jump to navigation Jump to search
No edit summary
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{breadcrumb|Wiki}}
{{breadcrumb|Wiki}}
'''Note:''' Need to add [[Subcategories]] to this page - which are nested categories within categories.


'''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.
'''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.
Line 18: Line 20:
* put the page in the appropriate wiki category
* 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>
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>


= Linking to a category page =
= Linking to a category page =
Line 25: Line 27:


<pre>
<pre>
[[:Category:Wiki]]
[[:Category: Wiki]]
</pre>
</pre>


will produce the following: [[: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:
To change the appearance of a category link, append a vertical bar and the desired text to display, as such:
Line 37: Line 39:


This would yield the following: [[:Category: Wiki|new text]]
This would yield the following: [[:Category: Wiki|new text]]
= Style conventions =
''Always'' put a space after every instance of '''Category:''' so that keyboard traversal is kept easy.


= Maintenance =
= Maintenance =

Latest revision as of 20:24, 6 December 2015

Main > Wiki


Note: Need to add Subcategories to this page - which are nested categories within categories.

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

Style conventions

Always put a space after every instance of Category: so that keyboard traversal is kept easy.

Maintenance

The following pages help in the maintenance of categories.

See also