MediaWiki API 帮助

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

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

action=mergehistory

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

合并页面历史。

具体参数:
其他通用参数可用。
from

将被合并历史的页面的标题。不能与fromid一起使用。

fromid

将被合并历史的页面的页面ID。不能与from一起使用。

类型:整数
to

将要合并历史的页面的标题。不能与toid一起使用。

toid

将要合并历史的页面的页面ID。不能与to一起使用。

类型:整数
timestamp

指定时间戳,决定源页面的哪些修订历史被移动到目标页面的历史中。如果省略,源页面的所有历史记录都将被合并到目标页面。

reason

历史合并的原因。

默认:(空)
starttimestamp

Timestamp from which revisions will be moved from the source page's history to the destination page's history. If omitted, all revisions before the timestamp parameter (or the entire history if neither are specified) will be merged into the destination page. May specify "timestamp|revid" to split two revisions with the same timestamp.

token

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

这个参数是必需的。