PGVWiki:Classification : Différence entre versions

De PGVWiki
Sauter à la navigation Sauter à la recherche
Ligne 14 : Ligne 14 :
 
==Comment classer un article==
 
==Comment classer un article==
  
Categorising an article is simply performed by editing it, and including one or more category declarations. For instance, to add the ''[[Blocks]]'' article to the "PhpGedView" category, you would edit the article and enter <tt><nowiki>[[Category:PhpGedView]]</nowiki></tt> at the bottom, but ''before'' any [[w:Interlanguage links|interlanguage links]]. The appeal of categories is that they update themselves automatically, and you don't have to edit the category to add an article to it.
+
La classification d'un article est tout simplement réalisée lors de son édition, en incluant une ou plusieurs déclarations d'appartenance à une catégorie. Par exemple, pour ajouter l'article ''[[Sauvegarde]]'' à la catégorie "PhpGedView", il suffit d'éditer cet article et d'entrer la ligne de code<tt><nowiki>[[Category:PhpGedView]]</nowiki></tt> en bas de page, en faisant attention à entrer cette ligne ''avant'' tout [[w:Interlanguage links|interlanguage links]]. The appeal of categories is that they update themselves automatically, and you don't have to edit the category to add an article to it.
  
 
When adding an article to a category, or creating categories, one should be careful to use the correct categories and subcategories. Horizontal categorisation (below), refers to placing an article in the correct category while vertical categorisation refers to placing an article in the correct ''sub''category.
 
When adding an article to a category, or creating categories, one should be careful to use the correct categories and subcategories. Horizontal categorisation (below), refers to placing an article in the correct category while vertical categorisation refers to placing an article in the correct ''sub''category.

Version du 24 février 2008 à 12:35

Pour obtenir des informations détaillées sur la façon d'utiliser les catégories, vous pouvez consulter cet article de Wikipedia Help:Category.

Différentes approches pour naviguer parmi les différentes catégories

Les catégories sont utilisées de deux façons différentes par les utilisateurs du PGVWiki afin de trouver des articles pertinents et intéressants. Ces différentes approches doivent être prises en considération lorsque l'on structure le hiérachie de ces différentes catégories.

Approche du haut vers le bas (Top-Down)

Un utilisateur peut parcourir les catégories de niveau supérieur à partir de la page Category:Contenu du PGVWiki. L'utilisateur peut ensuite descendre depuis cette page vers des catégories plus spécifiques en cliquant sur les liens des différentes sous_catégories qui sont affichées sur cette page. De cette manière, l'utilisateur peut naiguer (surfer) vers des articles de plus en plus pertinents.

Approche du bas vers le haut

Un utilisateur peut avoir déjà trouvé un article pertinent et peut avoir envie de trouver des articles similaires ou bien une palette plus importante d'articles. L'utilisateur peut alors cliquer sur le lien d'une catégorie qui apparaît en bas de page afin de trouver des articles appartenant à la même catégorie. En cliquant sur le lien d'une des catégories qui figure en bas de page, l'utilisateur pourra voir la catégorie immédiatement supérieure à laquelle est rattaché cet article, afin de visualiser l'ensemble des articles qui relèvent de cette catégorie.

Comment classer un article

La classification d'un article est tout simplement réalisée lors de son édition, en incluant une ou plusieurs déclarations d'appartenance à une catégorie. Par exemple, pour ajouter l'article Sauvegarde à la catégorie "PhpGedView", il suffit d'éditer cet article et d'entrer la ligne de code[[Category:PhpGedView]] en bas de page, en faisant attention à entrer cette ligne avant tout interlanguage links. The appeal of categories is that they update themselves automatically, and you don't have to edit the category to add an article to it.

When adding an article to a category, or creating categories, one should be careful to use the correct categories and subcategories. Horizontal categorisation (below), refers to placing an article in the correct category while vertical categorisation refers to placing an article in the correct subcategory.

When assigning an article into categories, try to be thorough in a "horizontal" sense. You might need to poke around the category hierarchy a bit to find the right place. Try searching for articles similar to the article you are categorising to get ideas or to find the most appropriate place.

In the "vertical" dimension, placing articles only in the most specific categories they reasonably fit in. Thus, if an article relates to a Chart type in PhpGedView then it could be categorised under Category:Charts but not Category:PhpGedView since Category:Charts is a subcategory of Category:PhpGedView. It is expected that the user should be able navigate the categorise hierarchy to find related articles using one of the above approaches.

When creating categories . . .

Look before you leap

Before creating a category, look to see if one already exists. The best way to do this is to first add the category to your article but preview before saving. When previewing a page, scroll right to the very bottom of the browser window to see the categories. If the category appears in blue, the category already exists. If it is in red, then you will be creating a new category. Check the capitalisation of the category name. For any red categories, you should look for categories with similar names before creating a new category. One way to do this is to think of the parent category for the new category. Search for it and then look at the subcategories in the parent. You may find that a category already exists that is similar to the one you are thinking about creating.

Before creating a new category, familiarise yourself with all the guidelines on this page, and related pages. Categories are deleted, merged and renamed at the PGVWiki Admin's discretion, particularly if over-categorisation occurs.

Note that, although "uncreated" categories will correctly list articles that have been assigned to them, the category page itself does not exist until it is manually created. The easiest way to create the category page is to follow the red category link from your article and create a new category page with a parent category and a category description as explained in the next section.

How to create subcategories

Subcategories may be created by putting [[Category:parent_category_name]] onto the page that you would like to make into a subcategory. This may seem counterintuitive, because you edit the subcategory page rather than the parent category page.

Let's say that you wanted to make the category called Roses into a subcategory of the category called Flowers.

Step 1 - Go to the page called [[Category:Roses]], and click edit this page.
Step 2 - Place the text [[Category:Flowers]] within the body of the [[Category:Roses]] article, and save.
Finished! Roses is now a subcategory of Flowers, and [[Category:Roses]] will be visible on [[Category:Flowers]].

Links to categories

You can create a link to a category page without adding the page to that category by using a colon before the word Category. Example: [[:Category:Charts]] appears as Category:Charts.


Category sorting

Pipe tricks and sort keys

Contrary to some expectations, text after a pipe ("|") in a category link is not used in place of the category text. Rather, this text is used as the sort key on the category page itself. However, again contrary to expectations, that sort text is not displayed. For example, [[Category:User|Nathan Watson-Haigh]] used in the user page of Nathan Watson-Haigh will make the "User:Nathan Watson-Haigh" page list under N rather than U in the category.

Setting a default sort key

The default sort key of a page for categories can be changed using the {{DEFAULTSORT}} magic word. For instance, on User:Nathan Watson-Haigh, {{DEFAULTSORT:Nathan Watson-Haigh}} would cause [[Category:User]] to be equivalent to [[Category:User|Nathan Watson-Haigh]], not [[Category:User|User:Nathan Watson-Haigh]]. This is especially useful when the article belongs in many categories. If more than one default sort key magic word is present on a page, the last occurrence is the one used. The {{DEFAULTSORT}} magic word affects all categories that the article is in, regardless of the position of the magic word relative to the category. It does not just affect subsequent categories. The default sort key can be overridden for individual categories applied to an article by manually applying a sort key.

An easy way of overriding the magic word and using the current article name as the sort key is to use the {{PAGENAME}} template after the pipe, e.g. [[CATEGORY:User|{{PAGENAME}}]]. Using this template will cause the article to appear in the position appropriate to its full article name if the article is moved.