PGVWiki:Classification : Différence entre versions

De PGVWiki
Sauter à la navigation Sauter à la recherche
Ligne 55 : Ligne 55 :
  
 
[[Category:PGVWiki]]
 
[[Category:PGVWiki]]
 
<!-- Language links...DO NOT DELETE -->
 
 
[[en:PGVWiki:Categorisation]]
 

Version du 24 février 2008 à 13:43

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. L'intérêt des catégories est qu'elles se mettent à jour automatiquement, et que vous n'avez pas besoin d'éditer la catégorie pour y ajouter un article.

Quand vous ajoutez un article dans une catégorie, ou quand vous créez des catégories, il faut bien faire attention à utiliser correctement les catégories et sous-catégories. 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.