MediaWiki API 帮助

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

文档和例子:-{R|https://www.mediawiki.org/wiki/API:Main_page/zh}-

action=wbsetclaim

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

创建或更新实体陈述或声称。

参数:
claim

陈述或声称序列化

This parameter is required.
index

在实体的声明列表内,要移动声明的索引。可选。注意当设置指定位置不在声明之后,而这个声明不特写相同属性的索引时,整个主snak特写相同属性的声明组会被移动。当不提供时,现有声明将出现在新的声明将附加至主snak特写相同属性最后一个的地方。

Type: integer
summary

编辑摘要。 将按照自动生成的评论。自动评论与摘要的长度限制是260个字符。需要小心任何超出上述限定的东西将被裁剪掉。

tags

Change tags to apply to the revision.

值(以|替代物分隔):
token

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

This parameter is required.
baserevid

要修改的基础修订的数字标识符。 这被用于保存时检测冲突。

Type: integer
bot

将此编辑标记为机器人编辑。此URL标记将只在用户属于“机器人”用户组时受尊重。

Type: boolean (details)
ignoreduplicatemainsnak

If this is true, and the entity already has a claim with the same main snak as the claim being sent in the request, then the request is ignored

Type: boolean (details)