Վիքիպեդիա:ՎիքիՆախագիծ Ուղեգիծ/Հաքաթոն/Վիքիպեդիա:Կատեգորիզացում

Վիքիպեդիայից՝ ազատ հանրագիտարանից

Կաղապար:Subcat guideline Կաղապար:Guideline list

A screencast explaining categories at Wikipedia and the usage of HotCat

Այս էջում բացատվում են Վիքիպեդիա-ի "կատեգորիզացում" մեխանիզմի օգտագործման կանոնները: Տեխնիկական մանրամասների համար տես. Help:Category: Հաճախ կրկնվող հարցերի պատասխանների համար տես. Categorization FAQ: Կատեգորիաների անվանումների հետ կապված պայմանավորվածությունների վերաբերյալ տես. Wikipedia:Category names: Այս համակարգի հիմնական էջն է՝ Կատեգորիա:Հիմնական:

Կատեգորիզացման համակարգ[խմբագրել կոդը]

Վիքիպեդիայի կատեգորիաների համակարգը թույլ է տալիս դասակարգել հոդվածները ըստ մի շարք սկզբունքների: Կատեգորիաները կարող էն պարունակել այլ կատեգորիաներ՝ առաջացնելով ծառանման համակարգ՝ Ա-ն կոչվում է Բ-ի ծնող կատեգորիա երբ Բ-ն Ա-ի ենթակատեգորիա է: Հստակեցնենք սակայն, որ միևնույն կատեգորիան կարող է ունենալ ավելի քան մեկ ծնող կատեգորիա և այդ պատճառով ծառային կառուցվածք չի ծնում: Մաթեմատկական տեսակետից կատեգորիաների միջև այս ծնող-ենթակատեգորիա հարաբերությունը կազմում է ուղղորդված ացիկլիկ գրաֆ կամ մասնակի կարգի հարաբերություն:

Այս կարգի մեջ արմատի դերում հանդես է գալիս Կատեգորիա:Հիմնական, որը միակ կատեգորիան է որ չունի ծնող կատեգորիա: Մնացած բոլոր կատեգորիաները պետք է լինեն գոնե մեկ այլ կատեգորիայի ենթակատեգորիա:

Տարբերում են կատեգորիաների երկու հիմնական տեսակ:

  • Թեմատիկ կատեգորիաները սովորաբար ստեղծվում են որևէ հոդվածի հիման վրա և որպես կանոն կրում են համապատասխան հոդվածի անունը: Օրինակ՝ Կատեգորիա:Արվեստ կատեգորիան պարունակում է հոդվածներ Արվեստ թեմայի վերաբերյալ:
  • Խմբային Կատեգորիաները կամ «Դասակարգումներ». սրանք վերաբերվում են որոշակի սկզբունքով խմբավորված հոդվածների դասի (այդ պատճառով սովորաբար հոգնակիով են անվանվում): Ընդ որում այդ դասին համապատասխան թեմա առանձին հոդվածի տեսքով որպես կանոն չի ստեղծվում: Օրինակ Կատեգորիա:Աշխարհագրություն_ըստ_երկրների դասակարգման մեջ թված են աշխարհագրության վերաբերյալ հոդվածներ դասակարգված ըստ երկրների:

Երբեմն այս երկու հասկացությունները միացվում են "Թեմատիկ-խմբային" կատեգորիաների մեջ: Այդպիսի օրինակ է Category:Voivodeships of Poland կատեգորիան որը ներկայացնում է «վոիվոդշիփ» (voivodship) վարչատարածքային բաժամնան տեսակը ընդհանրապես, և միաժամանակ պարունակում է Լեհաստանի «վոիվոդշիփերի» ցանկը:

Եթե որևէ կատեգորիայի մեջ ընդգրկվելու հետևանքով միշտ տրամաբանական է հոդվածը ընդգրկել մեկ այլ կատեգորիայի մեջ, ապա առաջին կատեգորիան պետք է դարձնել երկրորդի ենթակատեգորիա՝ ուղղակի կամ միջնորդավորված կերպով: Օրինակ՝ Կատեգորիա:Լուսանկարիչներ կատեգորիան հանդիսանում է Կատեգորիա:Լուսանկարչություն կատեգորիայի ենթակատեգորիա, որն էլ իր հերթին Կատեգորիա:Արվեստ կատեգորիայի ենթակատեգորիա է:

Partial view of Wikipedia's category system. Note how the arrows point downwards.

Կաղապար:Clearleft

Էջերի կատեգորիզացում[խմբագրել կոդը]

Որպես կանոն կատեգորիայի անվանումից պարզ է թե որ էջերը պիտի ընդգրկվեն տվյալ կատեգորիայի մեջ: Երբեմն կատեգորիայի էջի մեջ կարելի է ներառել հակիրճ պարզաբանում որը կոգնի էջերը ճիշտ դասակարգելուն:

Թեև մեկ հոդվածը կարելի է ներառել մեկից ավելի կատեգորիաների մեջ, այն պետք չէ ընդգրկել բոլոր հնարավոր կատեգորիաներում, այլ պետք է ընտրել այդ թեմային առավել համապատասխան կատեգորիան:

Սա հակտապես վերաբերվում է տրանզիտիվ հարաբերություններին՝ օր. եթե տվյալ հոդվածը պատկանում է X կատեգորիայի որևէ ենթակատեգորիայի, ապա այդ էջը պետք է ներառել այդ ենթակատեգորիաում և ոչ թե անմիջապես X կատեգորիայի մեջ: Բացառություն համար ստորև տես. Eponymous categories և Non-diffusing subcategories:

Վիքիպեդիայի յուրաքանչյուր հոդված պետք է պատկանի գոնե մեկ կատեգորիայի: Սովորաբար նոր հոդվածի համար կարելի է գտնել արդեն գոյություն ունեցող համապատասխան կատեգորիա. դրա համար այն պետք է համեմատել նման հոդվածների հետ և տեսնել թե որ կատեգորիայներում են գտնվում այդ հոդվածները:

Նոր կատեգորիա ստեղծելու համար տես. Ինչ կատեգորիաներ պիտի ստեղծվեն: Եթե դժվարանում եք ընտրել հոդվածին համապատասխան կատեգորիա, ապա էջում ներառեք {{կատեգորիա չկա}} կաղապարը: Հետագայում այլ խմբագրողներ (օրինակ նարանք ով հետևվում են կատեգորիա:նախազգուշացում) կգտնեն հարմար կատեգորիա այդ էջի համար:

Հոդվածներից զատ կան այլ էջեր, որոնց դասակարգման համար տես. Non-article and maintenance categories:

Հետևյալ նկատառումները կոգնեն դասակարգել հոդվածները՝

  • Յուրաքանչյուր հոդված պիտի ավելացվի բոլոր առավել հատկանշական (տերևային) կատեգորիաներում, որոնց այն տրամաբանորեն պատկանում է։
  • Հոդվածում բերված ստուգելի նյութից պետք է պարզ հետևի հոդվածի պատկանելությունը այդ կատեգորիաներից յուրաքանչյուրին։ *Օգտագործեք {{Category unsourced}} կաղապարը եթե գտնում եք որ տվյալ հողվածի աղբյուրներից չի հետևում որ այն համապատասխանում է այն կատեգորիային որում դասակարգված է։ Իսկ եթե հոդվածի բովանդակությունից հստակ չի բխում այդ համապատասխանությունը, ապա կարող եք օգտագործել {{Category relevant?}} կաղապարը։
  • Դասակարգեք հոդվածները ըստ բուն նյութի հատկանիշների և ոչ թե ինքնին հոդվածի։ Օրինակ կոնկրետ անձի կենսագրությունը ներկայացնող հոդվածը չի պատկանում կատեգորիա։կենսագրություն կատեգորիային։ Բայց կարող է պատկանալ կատեգորիա:հայ զորավարների կենսագրություններ ցանկին եթե նշված անձը հայ զորավար է։
  • Մտացածին առարկաների կամ անձանց վերաբերյալ հոդվածները պիտի դասակարգվեն այնպես որ դրանց իրական առարկաների կամ անձանց հետ չշփոթեն։
  • Հոդվածը երբեք չպիտի թողնվի գոյություն չունեցող (կարմիր հղումով) կատոգորիայում դասակարգված։ Կամ պետք է ստեղծել կատեգորիան, կամել հղումը կատեգորիայի վրա պիտի հանվի կամ փոխվի գոյություն ունեցող կատեգորիայի հղման։
  • Ընդունված է կատեգորիաների հայտարարությունները տեղադրել տեքստի վերջում բայց նախքան stub կաղապարները, որոնք իրենց մեջ ներառում են կատեգորիաների հայտարարություններ, ինչպես նաև մինչև միջլեզվական հղումների հայտարարությունը։
  • Հոդվածը պարունակող կատեգորիաների ցուցակը կարգավորելու կոնկրետ կանոններ չկան։ Օրինակ պարտադիր չէ այդ ցուցակը կարգավորել այբբենական կարգով, թեև հաճախ դա կարող է օգտակար լինել ընթերցողի համար։ Որպես կանոն ամենաէական և նշանակալից կաեգորիաները թվարկվում են սկզբից։ Եթե հոդվածը ունի համանուն կատեգորիա) ապա այդ կատեգորիան պիտի հանդես գա ցուցակում առաջին տեղում։ Օրինակ արվեստ հոդվածի կատեգորիաների հայտարարությունների ցանկում առաջին տեղում պիտի լինի կատեգորիա:արվեստ կատեգորիան։
  • If the desired display text in a particular category is different from the title of the article, it may be appropriate to categorize a redirect, either instead of or along with the article itself. For example, if John Smith was notable as both a musician and a writer, but used the stage name Johnny Rocket in his musical career, then the musician category declarations can be placed on the "Johnny Rocket" redirect page as well as (or instead of) on "John Smith". (Redirects appear in italics in category listings.) See also Wikipedia:Categorizing redirects.

What categories should be created[խմբագրել կոդը]

Categories should be useful for readers to find and navigate sets of related articles. They should be the categories under which readers would most likely look if they were not sure of where to find an article on a given subject. They should be based on essential, "defining" features of article subjects, such as nationality or notable profession (in the case of people), type of location or region (in the case of places), etc. Do not create categories based on incidental or subjective features. Examples of types of categories which should not be created can be found at Wikipedia:Overcategorization.

Remember that categories are not the only means of enabling users to browse sets of related articles. Other tools which may be used instead of or alongside categories in particular instances include lists and navigation boxes. For a comparison of these techniques, see Categories, lists and navigation templates.

Categorizations appear on pages without annotations or referencing to justify or explain their addition; editors should be conscious of the need to maintain a neutral point of view when creating categories or adding them to articles. Categorizations should generally be uncontroversial; if the category's topic is likely to spark controversy, then a list article (which can be annotated and referenced) is probably more appropriate.

Before creating a new category, check whether a similar category already exists under a different name (for example, by looking on the likely member pages or in likely parent categories).

Categories follow the same general naming rules as articles; for example, common nouns are not automatically capitalized. For specific rules, see Wikipedia:Naming conventions (categories).

For proposals to delete, merge, or rename categories, follow the instructions at Categories for discussion.

Subcategorization[խմբագրել կոդը]

↱
  • WP:SUBCAT

Many subcategories have two or more parent categories. For example, Category:British writers should be in both Category:Writers by nationality and Category:British people by occupation. When making one category a subcategory of another, ensure that the members of the first really can be expected (with possibly a few exceptions) to belong to the second also. Category chains formed by parent-child relationships should never form closed loops. If two categories are closely related but are not in a subset relation, then links between them can be included in the text of the category pages.

Diffusing large categories[խմբագրել կոդը]

↱
  • WP:DIFFUSE

Although there is no limit on the size of categories, a large category will often be broken down ("diffused") into smaller, more specific subcategories. For example, Category:Rivers of Europe is broken down by country into the subcategories Rivers of Albania, Rivers of Andorra, etc.

A category may be diffused using several coexisting schemes; for example, Category:Albums is broken down by artist, by date, by genre etc. Metacategories may be created as ways of organizing schemes of subcategories. For example, the subcategories called "Artistname albums" are not placed directly into Category:Albums, but into the metacategory Category:Albums by artist, which itself appears in Category:Albums.

It is possible for a category to be only partially diffused – some members are placed in subcategories, while others remain in the main category.

Information about how a category is diffused may be given on the category page. Categories which are intended to be fully broken down into subcategories can be marked with the {{catdiffuse}} template, which indicates that any pages which editors might add to the main category should be moved to the appropriate subcategories when sufficient information is available. (If the proper subcategory for an article does not exist yet, either create the subcategory or leave the article in the parent category for the time being.)

To suggest that a category is so large that it ought to be diffused into subcategories, you can add the {{verylarge}} template to the category page.

Non-diffusing subcategories[խմբագրել կոդը]

↱
  • WP:DUPCAT

Not all subcategories serve the "diffusion" function described above; some are simply subsets which have some special characteristic of interest, such as Best Actor Academy Award winners as a subcategory of Film actors, Toll bridges in New York City as a subcategory of Bridges in New York City, and Musical films as a subcategory of Musicals. These are called non-diffusing subcategories. They sometimes provide an exception to the general rule that pages are not placed in both a category and its subcategory: there is no need to take pages out of the parent category purely because of their membership of a non-diffusing subcategory. (Of course, if the pages also belong to other subcategories that do cause diffusion, then they will not appear in the parent category directly.)

It is useful to identify non-diffusing subcategories with a note on the category page. The {{allincluded}} and {{distinguished subcategory}} templates can be used.

Subcategories defined by ethnicity and sexuality are often non-diffusing subcategories. See also the gender, race and sexuality categorization guideline.

Eponymous categories[խմբագրել կոդը]

↱
  • WP:EPON

Often an article and a topic category will share the same name, as in George W. Bush and Category:George W. Bush, or occasionally similar names referring to the same thing, as with Mekong and Category:Mekong River. Such a category is called an eponymous category. Usually the article itself will be a member of the category (and should be sorted to appear at the start of the listing, as described below under Sort keys). A clear link to the main topic article from an eponymous category page can be created using the template {{cat main}}.

The question arises as to whether eponymous categories should be placed in (made subcategories of) the categories which their corresponding articles belong to. Logically they usually should not (for example, France belongs to Category:European countries, but Category:France does not constitute a subset of European countries). However, by convention, many categories do contain their articles' eponymous categories as subcategories, even though they are not "true" subcategories. In any case, an article should not be excluded from any set category on the grounds that its eponymous category is made a "subcategory" of that category.

If eponymous categories are categorized separately from their articles, it will be helpful to make links between the category page containing the articles and the category page containing the eponymous categories. The template {{Related category}} can be used for this. An example of this set-up is the linked categories Category:American politicians and Category:Categories named after American politicians.

↱
  • WP:SORT
  • WP:SORTKEY

Sort keys are sometimes needed to produce a correct ordering of member pages and subcategories on the category page. For the mechanics, see Sort order on the help page.

Because the software uses Unicode rather than true alphabetical ordering (see details), it is important that sort keys be capitalized consistently. By convention, the first letter of each word in a sort key is capitalized, and other letters are lower case. For example, use "Dubois" in sort keys rather than "DuBois".

Categories of people are usually sorted by last name rather than first name, so "surname, forename" sort keys are used (as in "Washington, George"). For more information, see Ordering names in a category in the people categorization guideline.

Entries containing modified letters should be sorted as if the letters were unmodified (for example, Łódź has the sort key "Lodz").

Other sort key considerations:

  • Leading articles—a, an, and the—are one of the most common reasons for using sortkeys. Please also apply these sort keys to deliberate misspellings of these words—e.g. "da" or "tha" for "the."
  • Entries containing numbers sometimes need special sort keys to ensure numerical rather than alphabetical ordering (for example, 19 and 103 come before 2 in alphabetical order, and IX comes before V). So Haydn's 13th symphony might have the sort key "Symphony 013", the zero ensuring that it is listed before symphonies 100–108; Pope John IX might have a sort key "John 09". It is important to stick to the same system for all similar entries in a given category.
  • Systematic sort keys are also used in other categories where the logical sort order is not alphabetical (for example, individual month articles in year categories such as Category:2004 use sort keys like "*2004-04" for April). Again, such systems must be used consistently within a category.
  • In some categories, sort keys are used to exclude prefixes that are common to all or many of the entries, or are considered unimportant (such as "List of" or "The"). For example, in Category:2004 the page 2004 in film would have the sort key "Film", and in Category:2004 in Canada the page 2004 Canadian federal budget would have the sort key "Federal Budget".
  • Use a space as the sort key for an article matching an eponymous category, or for a key article for the category. For example, the article Barack Obama includes the category sort key [[Կատեգորիա:Barack Obama| ]]. This places the article at the start of the listing for that category. (Note: if the key article should not be a member, simply list it in the category text itself.) Typically, these eponymous categories are listed first even if they do not appear first in alphabetical order.
  • Use other sort keys beginning with a space (or an asterisk or a plus sign) for any "List of ..." and other pages that should appear after the key article and before the main alphabetical listings. The same technique is sometimes used to bring particular subcategories to the start of the list.
  • To place entries after the main alphabetical list, use sort keys beginning with tilde ("~"). Other characters used for this purpose are "µ", commonly used to place stub categories at the end of subcategory lists; "β" for book subcategories; and "τ" for templates.
  • If a page is to be given the same sort key in all or several of its categories, the {{DEFAULTSORT}} magic word can be used. Conventionally, this is placed just before the list of category declarations. Default sort keys are sometimes defined even where they do not seem necessary—when they are the same as the page name, for example—in order to prevent other editors or automated tools from trying to infer a different default.

Content of category pages[խմբագրել կոդը]

Rather than leave the text of a category page empty (containing only parent category declarations), it is helpful – to both readers and editors – to include a description of the category, indicating what pages it contains, how they should be subcategorized, and so on. The description can also contain links to other pages, in particular to other related categories which do not appear directly as subcategories or parent categories, and to "sister categories" on other projects, such as Commons.

Various templates have been developed to make it easier to produce category descriptions, such as {{Cat main}}, {{Cat see also}}, and Կաղապար:T. For more of these, see Category namespace templates. Another technique that can be used is described at Wikipedia:Classification.

A maximum of 200 category entries are displayed per screen. To make navigating large categories easier, a table of contents can be used on the category page. The following templates are some of the ways of doing this:

  • {{CategoryTOC}} – adds a complete table of contents (Top, 0–9, A–Z)
  • {{CatAZ}} – the same as {{CategoryTOC}}, but without the numbers 0–9
  • {{LargeCategoryTOC2}} – adds a complete table of contents with five subdivisions for each letter (Aa Ae Aj Ao At)
  • {{LargeCategoryTOC}} – adds a complete table of contents with twenty-six subdivisions for each letter (Aa ... Az)

Subcategories are split alphabetically along with the articles, which means that the initial screen of a split category may not include all its subcategories. To make all subcategories display on each screen, add a category tree to the text of the category page, as described at the help page under Displaying category trees and page counts.

Interlanguage links work on category pages just as they do for articles, and can be used to link to corresponding categories on other language Wikipedias.

Non-article and maintenance categories[խմբագրել կոդը]

↱
  • WP:PROJCATS

A distinction is made between two types of category:

  • content categories, intended as part of the encyclopedia, to help readers find articles, based on features of the subjects of those articles;
  • project categories, intended for use by editors or by automated tools, based on features of the current state of articles, or used to categorize non-article pages.

Project categories include stub categories (generally produced by stub templates), maintenance categories (often produced by tag templates such as {{cleanup}} and {{fact}}, and used for maintenance projects), WikiProject and assessment categories, and categories of pages in non-article namespaces.

Article pages should be kept out of project categories if possible. For example, the templates that generate WikiProject and assessment categories should be placed on talk pages, not on the articles themselves. If it is unavoidable that a project category appears on article pages (usually because it is generated by a maintenance tag that is placed on articles), then in most cases it should be made a hidden category, as described under Hiding categories below.

There are separate project categories for different kinds of non-article page (template categories, disambiguation page categories, project page categories, etc.). There is no need to categorize user pages, talk pages or redirects, although these can be placed in categories where appropriate. See the guideline on categorizing redirects, and the Categorizing user pages section below.

Images[խմբագրել կոդը]

Category tags can be added to image pages too. Images are not included in the count of articles in the category, but are displayed in a separate section with a thumbnail and the name for each. A category can mix articles and images, or a separate image category can be created. An image category is typically a subcategory of the general category about the same subject, and a subcategory of the wider image category, Wikipedia images. To categorize a new image when uploading, simply add the category tag to the upload summary.

Categorizing user pages[խմբագրել կոդը]

↱
  • WP:USERNOCAT

User pages are not articles, and thus do not belong in content categories such as Living people or Biologists. They can however be placed in user categories – subcategories of Wikipedians, such as Wikipedian biologists – which assist collaboration between users. See Wikipedia:User categories for further information.

Similarly, user subpages that are draft versions of articles should be kept out of content categories. If you copy an article from mainspace to userspace and it already contains categories, remove them or comment them out. Restore the categories when you move the draft back into article space.

Hiding categories[խմբագրել կոդը]

↱
  • WP:HIDDENCAT

In cases where, for technical reasons, project categories appear directly on articles rather than talk pages, they should be made into hidden categories, so that they are not displayed to readers. This rule does not apply to stub categories or "uncategorized article" categories – these types are not hidden.

To hide a category, add the template {{hiddencat}} to the category page (the template uses the magic word __HIDDENCAT__). This also places the page in Category:Hidden categories.

A logged-in user may elect to view all hidden categories, by checking "Show Hidden Categories" on the "Appearance" tab of My Preferences. Notice that "hidden" parent categories are never in fact hidden on category pages (although they are listed separately).

Categorization using templates[խմբագրել կոդը]

Many templates include category declarations in their transcludable text, for the purpose of placing the pages containing those templates into specific categories. This technique is very commonly used for populating certain kinds of project categories, including stub categories and maintenance categories.

However, it is recommended that articles should not be placed in ordinary content categories using templates in this way. There are many reasons for this – editors cannot see the category in the wikitext; removing or restructuring the category is made more difficult (partly because automated processes will not work); inappropriate articles and non-article pages may get added to the category; sort keys may be unavailable to be customised per category; ordering of categories on the page is less controllable; and the "incategory" search term will not find such pages [1].

When templates are used to populate project categories, ensure that the code cannot generate nonsensical or non-existent categories, particularly when the category name depends on a parameter. Also, see Category suppression for ways of keeping inappropriate pages out of template-generated categories.

Category declarations in templates often use {{PAGENAME}} as the sort key, particularly if they are designed to be placed on talk pages, as this suppresses the Talk: prefix. Note that this overrides any DEFAULTSORT defined on the page.

Redirected categories[խմբագրել կոդը]

Because of software limitations [2], ordinary (hard) redirects should not be used with category pages. If a category name needs to be redirected to another, use the {{Category redirect}} template to create a soft redirect. A bot traverses categories redirected in this manner, moving articles out of the redirected category into the target category. (See Template talk:Category redirect.)

For browsing
For maintenance


  1. bugzilla:2285
  2. bugzilla:3311

Կաղապար:Wikipedia policies and guidelines