Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=mergehistory

(main | mergehistory)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł wymaga praw zapisu.
  • Ten moduł akceptuje tylko żądania POST.
  • Źródło: MediaWiki
  • Licencja: GPL-2.0-or-later

Łączenie historii edycji.

Parametry:
Other general parameters are available.
from

Tytuł strony, z której historia ma zostać połączona. Nie może być używane z fromid.

fromid

ID strony, z której historia ma zostać połączona. Nie może być używane z from.

Typ: liczba całkowita
to

Tytuł strony, z którą połączyć historię. Nie może być używane z toid.

toid

ID strony, z którą połączyć historię. Nie może być używane z to.

Typ: liczba całkowita
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. May specify "timestamp|revid" to split two revisions with the same timestamp.

reason

Powód łączenia historii.

Domyślnie: (puste)
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

Token „csrf” pobrany z action=query&meta=tokens

Ten parametr jest wymagany.