MediaWiki API 帮助

这是自动生成的MediaWiki API文档页面。

文档和例子:https://www.mediawiki.org/wiki/API:Main_page/zh

action=smwtask

main | smwtask
  • 此模块需要读取权限。
  • 此模块需要写入权限。
  • 此模块只允许POST请求。
  • 来源:Semantic MediaWiki
  • 许可协议:GPL-2.0-or-later

执行语义MediaWiki相关任务的API模块。

参数:
task

Defines the task type

这个参数是必须的。
以下值中的一个:updatecheck-queryrun-entity-examinerduplicate-lookuptable-statisticsinsert-jobrun-joblist
params

JSON encoded parameters that match the selected task type requirement

token

action=query&meta=tokens取回的“csrf”令牌

这个参数是必须的。
例子:
Example of running a update task for a particular subject:
api.php?action=smwtask&task=update&params={ "subject": "Foo" } [在沙盒中打开]