Extension:PageAssessments/fr

Cette extension enregistre les évaluations d'articles (par exemple de WikiProjects) d'une manière structurée et interrogeable. Pour un exemple sur la manière dont les évaluations d'articles sont faites, voir les  instructions sur Wikipedia.

Installation
Vous pouvez également utiliser ces options de configuration dans votre  :
 * — If assessments are normally recorded on the pages themselves rather than on talk pages, set this to  (default:  ).
 * — If projects on your wiki have subprojects or task forces that you would like to record separate assessments for, set this to  (default:  ).

Utilisation
La fonction d'analyseur pour créer une nouvelle évaluation est :


 * — a short name for the project assessing the article, for example, "Medicine" or "Hungarian culture‎". Maximum 128 caractères.
 * — une appréciation de la qualité, par exemple B ou FA. See the class grades on Wikipedia for a more comprehensive example. Maximum 20 caractères.
 * — a ranking of how important the article is to the project, for example, "Low" or "High". Maximum 20 caractères.

The  parser function is expected to be on the talk page of the page under review, however it may be included on the page itself if   is set to. A page may have more than one assessment function for different projects.

Exemple d'utilisation
The importance/priority of an article might be different depending on the WikiProject:

API
The PageAssessments extension includes three API query modules:,  , and.

Pageassessments
is a new property query for the MediaWiki Action API. It is used to retrieve assessment metadata for one or more pages.

Exemples
Get project and assessment data for page "Apple".

api.php?action=query&prop=pageassessments&titles=Apple

Get project and assessment data for pages "Apple" and Pear, using the newer API result format.

api.php?action=query&prop=pageassessments&titles=Apple|Pear&formatversion=2

Get project and assessment data for page "Apple", including subprojects and task forces (only available if  is  ).

api.php?action=query&prop=pageassessments&titles=Apple&pasubprojects=true

Projectpages
is a new list query. It is used to retrieve all the pages assessed by a particular WikiProject. This query can be used as a generator. By adding, you can also get the assessment metadata for each of the pages.

Exemples
Get first 10 pages associated with any WikiProject:

Get first 10 pages associated with WikiProject Medicine, including assessment data:

Get page info for first 10 pages associated with WikiProject Textile Arts:

Projects
is a new list query. It is used to retrieve a list of all the WikiProjects on a wiki. The results are returned as an array of project names.

Exemples
Get a list of all the WikiProjects.

api.php?action=query&list=projects

Get a list of all the WikiProjects, including subprojects and task forces (only available if  is  ).

api.php?action=query&list=projects&pjsubprojects=true

Page spéciale
PageAssessments also provides an on-wiki interface for retrieving assessment data at Special:PageAssessments.

Tables de la base de données
PageAssessments crée deux nouvelles tables dans la base données :



stores the assessment metadata, while  stores the names of WikiProjects (so that they don't have to be recorded in full as part of each assessment record in the   table). Both tables are required for proper functioning of the parser function and APIs. The tables should exist on any wiki that has the PageAssessments extension installed. If PageAssessments is uninstalled, both tables can be dropped safely.

The  maintenance script can be run to remove projects from the   table that are no longer used by any assessments.

Voir aussi

 * Community Tech/PageAssessments at Meta-Wiki
 * Créer une nouvelle extension qui implémente l'importance et la qualité de l'article