Extension:PageAssessments

This extension is for the purposes of storing article assessments (for WikiProjects) in a new database table. For an example of how article assessments are done, see the guidelines on English Wikipedia.

Installation
1. Download the extension using git from gerrit. 2. Add  to LocalSettings.php.

3. Run Manual:update.php to create necessary database table(s).

Usage
The parser function for creating a new assessment is:.


 * - a short name for the project assessing the article, for example, 'Medicine' or 'Hungarian culture‎'. Can be up to 128 characters long.


 * - a quality ranking, for example, 'B' or 'FA'. See the class grades on English Wikipedia for a more comprehensive example. Can be up to 20 characters long.


 * - a ranking of how important the article is to the project, for example, 'Low' or 'High'. Can be up to 20 characters long.

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

Note: If an assessment template is already in use on multiple pages, the parser function can be embedded inside the template instead of having to edit each individual article's talk page.

Example usage
The importance/priority of an article might be different depending on the WikiProject:

API
The PageAssessments extension includes two API modules:  and.

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

Examples
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

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.

Examples
Get first 10 pages associated with any WikiProject. api.php?action=query&list=projectpages Get first 10 pages associated with WikiProject Medicine, including assessment data. api.php?action=query&list=projectpages&wppprojects=Medicine&wppassessments=true Get page info for first 10 pages associated with WikiProject Textile Arts. api.php?action=query&generator=projectpages&prop=info&gwppprojects=Textile%20Arts