MediaWiki API 說明

此頁為自動產生的 MediaWiki API 說明文件頁面。

說明文件與範例:https://www.mediawiki.org/wiki/API

action=mergehistory

(main | mergehistory)
  • 此模組需要讀取權限。
  • 此模組需要寫入權限。
  • 此模組僅接受 POST 請求。
  • 来源:MediaWiki
  • 许可协议:GPL-2.0+

合并页面历史。

參數:
from

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

fromid

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

类型:整数
to

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

toid

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

类型:整数
timestamp

Timestamp up to which revisions will be moved from the source page's history to the destination page's history. If omitted, the entire page history of the source page will be merged into the destination page.

类型:时间戳(允许格式
reason

历史合并的原因。

預設值:(空)
token

action=query&meta=tokens 接收的 "csrf" 密鑰。

此參數為必填。