Difference between revisions of "Help:Category"

From ArchWiki
Jump to: navigation, search
m (add japanese)
(i18n category name: clarify on category redirects)
 
(21 intermediate revisions by 8 users not shown)
Line 1: Line 1:
 
[[Category:Help]]
 
[[Category:Help]]
 
[[es:Help:Category]]
 
[[es:Help:Category]]
[[ja:Help:Category]]
+
[[ja:Help:カテゴリ]]
 +
[[ru:Help:Category]]
 
[[zh-CN:Help:Category]]
 
[[zh-CN:Help:Category]]
Every article must be categorized. It is shown at the bottom of Arch Wiki. Articles may belong to multiple categories. This HOWTO will explain how to set page category, how to create missing categories pages and how to move a page to a different category.
+
Every article must be categorized: categories are displayed at the bottom of each article. This HOWTO will explain how to set page category, how to create missing categories pages and how to move a page to a different category. For the related style rules, see [[Help:Style]].
  
 
Articles and categories used as examples in this article are not real. If you want to practice moving while reading this HOWTO, find a ''real'' page you want to move.
 
Articles and categories used as examples in this article are not real. If you want to practice moving while reading this HOWTO, find a ''real'' page you want to move.
Line 9: Line 10:
  
 
== Set page category ==
 
== Set page category ==
 +
 
Click "edit" at the top of the page. Add the following to the beginning of the text:
 
Click "edit" at the top of the page. Add the following to the beginning of the text:
 +
 
  <nowiki>[[Category:Some Category]]</nowiki>
 
  <nowiki>[[Category:Some Category]]</nowiki>
 +
 +
Please try to use existing categories when possible: you can find the whole category tree at [[Table of contents]]. Only if there is no suitable category for your new article, do save the page with the non-existent category name, but then follow [[#Create new category page]].
  
 
== Create new category page ==
 
== Create new category page ==
  
After you have saved the page, you will see a {{ic|<nowiki>[[Category:Some Category]]</nowiki>}} link at the bottom of the article. If this category does not exists, it will show in red color. Click the red link to go to the newly created category.
+
After you have saved the page, you will see a "Category: Some Category" link at the bottom of the article. If this category does not exist it will be highlighted in red. Click the red link to go to the newly created category.
  
Set it to be a sub category an parent category:   
+
Set it to be a sub-category of an existing parent category:   
  
 
  <nowiki>[[Category:Parent Category]]</nowiki>
 
  <nowiki>[[Category:Parent Category]]</nowiki>
  
Save the category page. If {{ic|<nowiki>[[Category:Parent Category]]</nowiki>}} already existed. Your job is done. If not, you have to add this page to an appropriate category by doing the same, only the category name is different now.
+
Finally save the category page.
 +
 
 +
If you think the new category needs a parent that does not exist yet either, please open a discussion in the new category's talk page instead of creating a whole new tree of categories by yourself.
  
 
== Move a page into a different category ==
 
== Move a page into a different category ==
Line 26: Line 33:
 
To move a page into a category, edit the page's {{ic|<nowiki>[[Category:Some category]]</nowiki>}} line.
 
To move a page into a category, edit the page's {{ic|<nowiki>[[Category:Some category]]</nowiki>}} line.
  
For example, let us move a fictional page "ArchWiki Tutorial (Serbian)" to an appropriate fictional category. (Moving to existing categories is basically the same as moving to non-existing categories.)
+
For example, let us move a fictional page "ArchWiki Tutorial (Magyar)" to an appropriate fictional category. (Moving to existing categories is basically the same as moving to non-existing categories.)
  
 
Click "edit" at the top of the page. Find the following line at the beginning of the text:
 
Click "edit" at the top of the page. Find the following line at the beginning of the text:
Line 34: Line 41:
 
change it to:
 
change it to:
  
  <nowiki>[[Category:ArchWiki Help (Serbian)]]</nowiki>
+
  <nowiki>[[Category:Help (Magyar)]]</nowiki>
  
 
Save the page by clicking the "Save page" button just below the edit box.
 
Save the page by clicking the "Save page" button just below the edit box.
  
 
== i18n category name ==
 
== i18n category name ==
For each language, the category name should follow the format of
 
Title in English language (Native language name)
 
  
For example:
+
Category titles follow the same rules described in [[Help:i18n#Page titles]], but note that they cannot take advantage of [[Help:i18n#Localized redirects]] simply because MediaWiki does not support them.
* Laptops
+
* About Arch (Español)‏‎
+
  
 
== Category list ==
 
== Category list ==
 
To find out more about ArchWiki categories:
 
To find out more about ArchWiki categories:
  
* Examine the [[Table of Contents]].
+
* Examine the [[Table of contents]].
 
*A full list of categories is [[Special:Categories|here]].
 
*A full list of categories is [[Special:Categories|here]].
 
*A list of uncategorized categories is [[Special:Uncategorizedcategories|here]].
 
*A list of uncategorized categories is [[Special:Uncategorizedcategories|here]].
 
*A list of uncategorized articles is [[Special:Uncategorizedpages|here]].
 
*A list of uncategorized articles is [[Special:Uncategorizedpages|here]].
 
*A list of empty categories is [[Special:Unusedcategories|here]].
 
*A list of empty categories is [[Special:Unusedcategories|here]].

Latest revision as of 03:46, 13 March 2016

Every article must be categorized: categories are displayed at the bottom of each article. This HOWTO will explain how to set page category, how to create missing categories pages and how to move a page to a different category. For the related style rules, see Help:Style.

Articles and categories used as examples in this article are not real. If you want to practice moving while reading this HOWTO, find a real page you want to move.

Note: Everything that is discussed in this article applies to categories themselves in quite the same way (i.e. categories can also be categorized).

Set page category

Click "edit" at the top of the page. Add the following to the beginning of the text:

[[Category:Some Category]]

Please try to use existing categories when possible: you can find the whole category tree at Table of contents. Only if there is no suitable category for your new article, do save the page with the non-existent category name, but then follow #Create new category page.

Create new category page

After you have saved the page, you will see a "Category: Some Category" link at the bottom of the article. If this category does not exist it will be highlighted in red. Click the red link to go to the newly created category.

Set it to be a sub-category of an existing parent category:

[[Category:Parent Category]]

Finally save the category page.

If you think the new category needs a parent that does not exist yet either, please open a discussion in the new category's talk page instead of creating a whole new tree of categories by yourself.

Move a page into a different category

To move a page into a category, edit the page's [[Category:Some category]] line.

For example, let us move a fictional page "ArchWiki Tutorial (Magyar)" to an appropriate fictional category. (Moving to existing categories is basically the same as moving to non-existing categories.)

Click "edit" at the top of the page. Find the following line at the beginning of the text:

[[Category:Help]]

change it to:

[[Category:Help (Magyar)]]

Save the page by clicking the "Save page" button just below the edit box.

i18n category name

Category titles follow the same rules described in Help:i18n#Page titles, but note that they cannot take advantage of Help:i18n#Localized redirects simply because MediaWiki does not support them.

Category list

To find out more about ArchWiki categories:

  • Examine the Table of contents.
  • A full list of categories is here.
  • A list of uncategorized categories is here.
  • A list of uncategorized articles is here.
  • A list of empty categories is here.