MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=ratepage

(main | ratepage)
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • منبع: RatePage
  • License: GPL-2.0-or-later

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 by default, can be altered by configuration settings)

Type: integer
contest

Contest identifier

token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.