MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=pagerating
(main | pagerating)
- This module requires read rights.
- This module requires write rights.
- Source: RatePage
- License: MIT
Allows a user to vote on a page and gets the rating for a page. Requires specyfying one of two parameters: pageid or pagetitle.
Parameters:
- pageid
Page ID
- Type: integer
- pagetitle
Page title
- answer
User's page rating (from 1 to 5 inclusive)
- Type: integer
- contest
Contest identifier
Examples:
- Get the current rating for page Example,
- api.php?action=pagerating&pagetitle=Example [open in sandbox]
- Rate page Example with a 2.
- api.php?action=pagerating&pagetitle=Example&answer=2 [open in sandbox]