MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

action=mergehistory

(main | mergehistory)
  • Denna modul kräver läsrättigheter.
  • Denna modul kräver skrivrättigheter.
  • Denna modul accepterar endast POST-begäranden.
  • Source: MediaWiki
  • License: GPL-2.0+

Sammanfoga sidhistoriker.

Parametrar:
from

Title of the page from which history will be merged. Cannot be used together with fromid.

fromid

Page ID of the page from which history will be merged. Cannot be used together with from.

Type: integer
to

Title of the page to which history will be merged. Cannot be used together with toid.

toid

Page ID of the page to which history will be merged. Cannot be used together with to.

Type: integer
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.

Type: timestamp (allowed formats)
reason

Orsaken till sammanfogning av historik.

Default: (empty)
token

A "csrf" token retrieved from action=query&meta=tokens

Denna parameter är obligatorisk.
Examples:
Sammanfoga hela historiken för Oldpage i Newpage.
api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason [open in sandbox]
Sammanfoga den sidversion av Oldpage daterad fram till 2015-12-31T04:37:41Z till Newpage.
api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason&timestamp=2015-12-31T04%3A37%3A41Z [open in sandbox]