MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wikiforum-sort
(main | wikiforum-sort)
- 此模块需要读取权限。
- 此模块需要写入权限。
- 此模块只允许POST请求。
- 来源:WikiForum
- 许可协议:GPL-3.0-or-later
Move a forum or a category up or down in the overview listing (Special:WikiForum)
具体参数:
其他通用参数可用。
- id
ID of the forum or category to sort
- 这个参数是必需的。
- 类型:整数
- iscategory
Is the thing about to be sorted a forum category?
- 类型:布尔型 (详情)
- direction
Direction to move the category or forum to, either up or down
- 这个参数是必需的。
- 以下值中的一个:down、up
- 默认:down
- token
从action=query&meta=tokens取回的“csrf”令牌
- 这个参数是必需的。
例子:
- Move the forum category with the ID #32 up
- api.php?action=wikiforum-sort&sort=up&iscategory=true&id=32 [在沙盒中打开]