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
- 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.
- 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.
- Połącz całą historię strony Oldpage ze stroną Newpage.
- api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason [otwórz w brudnopisie]
- Merge the page revisions of Oldpage dating up to 2015-12-31T04:37:41Z into Newpage.
- api.php?action=mergehistory&from=Oldpage&to=Newpage&token=123ABC&reason=Reason×tamp=2015-12-31T04%3A37%3A41Z [otwórz w brudnopisie]