MediaWiki API 帮助
这是自动生成的MediaWiki API文档页面。
文档和例子:https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=wikiforum-set-thread-stickiness
(main | wikiforum-set-thread-stickiness)
- 此模块需要读取权限。
- 此模块需要写入权限。
- 此模块只允许POST请求。
- 来源:WikiForum
- 许可协议:GPL-3.0-or-later
Set the stickiness status of a thread, i.e. make a previously sticky thread a regular thread or turn a regular thread into a sticky thread
具体参数:
其他通用参数可用。
- id
ID of the thread
- 这个参数是必需的。
- 类型:整数
- stickiness
Action to take, either set to make a thread sticky or remove to remove a thread's sticky status
- 这个参数是必需的。
- 以下值中的一个:remove、set
- token
从action=query&meta=tokens取回的“csrf”令牌
- 这个参数是必需的。
例子:
- Make the thread with the ID #666 sticky
- api.php?action=wikiforum-set-thread-stickiness&id=666&stickiness=set [在沙盒中打开]