MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:https://www.mediawiki.org/wiki/API:Main_page/zh
action=ratepage
(main | ratepage)
- 此模块需要读取权限。
- 此模块需要写入权限。
- 来源:页面评分
- 许可协议: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.
参数:
- pageid
页面ID
- Type: integer
- pagetitle
页面标题
- answer
用户评分 (前5个)
- Type: integer
- contest
竞赛标识符
例子:
- 获取 Example 页的当前分数,
- api.php?action=ratepage&pagetitle=Example [在沙盒中打开]
- 含有a 2 的评分页 Example.
- api.php?action=ratepage&pagetitle=Example&answer=2 [在沙盒中打开]