MediaWiki API 幫助

這是自動(dòng)生成的MediaWiki API文檔頁面。

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

action=mergehistory

main | mergehistory
  • 此模塊需要讀取權(quán)限。
  • 此模塊需要寫入權(quán)限。
  • 此模塊只允許POST請(qǐng)求。
  • 來源:MediaWiki
  • 許可協(xié)議:GPL-2.0+

合并頁面歷史。

參數(shù):
from

將被合并歷史的頁面的標(biāo)題。不能與fromid一起使用。

fromid

將被合并歷史的頁面的頁面ID。不能與from一起使用。

類型:整數(shù)
to

將要合并歷史的頁面的標(biāo)題。不能與toid一起使用。

toid

將要合并歷史的頁面的頁面ID。不能與to一起使用。

類型:整數(shù)
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.

類型:時(shí)間戳(允許格式
reason

歷史合并的原因。

默認(rèn):(空)
token

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

這個(gè)參數(shù)是必須的。