Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

action=undelete

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

Restore revisions of a deleted page.

A list of deleted revisions (including timestamps) can be retrieved through list=deletedrevs, and a list of deleted file IDs can be retrieved through list=filearchive.

Parametry:
title

Title of the page to restore.

Ten parametr jest wymagany.
reason

Powód przywracania.

Domyślnie: (puste)
timestamps

Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.

Typ: lista znaczników czasu (dozwolone formaty)
Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
fileids

IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.

Type: list of integers
Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.

Jedna z następujących wartość: watch, unwatch, preferences, nochange
Domyślnie: preferences
token

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

Ten parametr jest wymagany.