Difference between revisions of "Wiki Team/Guide/Categories"

From Sugar Labs
Jump to navigation Jump to search
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<noinclude>{{ GoogleTrans-en | es =show | bg =show | zh-CN =show | zh-TW =show | hr =show | cs =show | da =show | nl =show | fi =show | fr =show | de =show | el =show | hi =show | it =show | ja =show | ko =show | no =show | pl =show | pt =show | ro =show | ru =show | sv =show }}</noinclude>
+
<noinclude>
 +
[[Category:Help]]</noinclude>
 
Articles may be classified according to categories.  Proper classification of articles can make searching the wiki much easier.  
 
Articles may be classified according to categories.  Proper classification of articles can make searching the wiki much easier.  
  
Line 6: Line 7:
  
 
== For Readers ==
 
== For Readers ==
Use the page [[Special:Categories]] to see a list of categories.  There is a link to it in the '''sidebar''' on the left side of every page. <-- OR THERE SHOULD BE! -->
+
Use the page [[Special:Categories]] to see a list of categories.  There is a link to it in the '''sidebar''' on the left side of every page under 'Quick Links'.
  
 
Follow a category link in the list of categories to see all the articles (pages) in that category, organized alphabetically.
 
Follow a category link in the list of categories to see all the articles (pages) in that category, organized alphabetically.
Line 12: Line 13:
 
The categories for an article are listed at the bottom of the page.  Each is a link to a list of all pages in that category.
 
The categories for an article are listed at the bottom of the page.  Each is a link to a list of all pages in that category.
  
 +
Categories may be hidden from the default view.  See [[:Category:Hidden_categories]].  You can set a preference (under misc.) to have these shown.
  
 
== For Editors ==
 
== For Editors ==
 
To put an article in a category you simply need to add a category link to the article. A category link looks like:
 
To put an article in a category you simply need to add a category link to the article. A category link looks like:
  <nowiki>[[Category:Some topic]]</nowiki>
+
 
 +
<code><nowiki>[[Category:Some topic | sort key]]</nowiki></code>
 +
: The optional | ''sort key'' parameter is useful to resort the page link on the category page, for example, to remove leading articles or parent page prefixes.
  
 
How you pick the categories is up to you.  Be careful to choose reasonable categories that make sense for the subject matter in the wiki.  There's no point in having each article in it's own category, or in having all articles in the same category.  Use the category mechanism to help divide up the wiki for easier searching.
 
How you pick the categories is up to you.  Be careful to choose reasonable categories that make sense for the subject matter in the wiki.  There's no point in having each article in it's own category, or in having all articles in the same category.  Use the category mechanism to help divide up the wiki for easier searching.
 +
 +
=== Link to a Category page ===
 +
 +
Use this wiki code to provide a link to a category page from another page:
 +
 +
<code><nowiki>[[:Category:Topic]]</nowiki></code>
 +
: The leading colon, {{Code|:}} is what makes it a link instead of a tag.
  
 
== See Also ==
 
== See Also ==
 
* [http://www.mediawiki.org/wiki/Help:Categories MediaWiki Manual: Categories]
 
* [http://www.mediawiki.org/wiki/Help:Categories MediaWiki Manual: Categories]
 
* [http://meta.wikimedia.org/wiki/Help:Category Wikimedia Meta: Category]
 
* [http://meta.wikimedia.org/wiki/Help:Category Wikimedia Meta: Category]

Latest revision as of 17:14, 16 August 2014

Articles may be classified according to categories. Proper classification of articles can make searching the wiki much easier.

An article can be in any number of categories.


For Readers

Use the page Special:Categories to see a list of categories. There is a link to it in the sidebar on the left side of every page under 'Quick Links'.

Follow a category link in the list of categories to see all the articles (pages) in that category, organized alphabetically.

The categories for an article are listed at the bottom of the page. Each is a link to a list of all pages in that category.

Categories may be hidden from the default view. See Category:Hidden_categories. You can set a preference (under misc.) to have these shown.

For Editors

To put an article in a category you simply need to add a category link to the article. A category link looks like:

[[Category:Some topic | sort key]]

The optional | sort key parameter is useful to resort the page link on the category page, for example, to remove leading articles or parent page prefixes.

How you pick the categories is up to you. Be careful to choose reasonable categories that make sense for the subject matter in the wiki. There's no point in having each article in it's own category, or in having all articles in the same category. Use the category mechanism to help divide up the wiki for easier searching.

Link to a Category page

Use this wiki code to provide a link to a category page from another page:

[[:Category:Topic]]

The leading colon, : is what makes it a link instead of a tag.

See Also