Pomoc MediaWiki API
To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API
action=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-or-later
Restore revisions of a deleted page.
A list of deleted revisions (including timestamps) can be retrieved through prop=deletedrevisions, and a list of deleted file IDs can be retrieved through list=filearchive.
- title
- Tytuł strony do przywrócenia. 
- Ten parametr jest wymagany.
- reason
- Powód przywracania. 
- Domyślnie: (puste)
- tags
- Change tags to apply to the entry in the deletion log. 
- Wartości (oddziel za pomocą | lub alternatywy):
- 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ą | lub alternatywy. 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. 
- Typ: lista liczb całkowitych
- Oddziel wartości za pomocą | lub alternatywy. 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ści: watch, unwatch, preferences, nochange
- Domyślnie: preferences
- token
- Token "csrf" zdobyty z action=query&meta=tokens 
- Ten parametr jest wymagany.
- Undelete page Main Page.
- api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page [otwórz w brudnopisie]
- Undelete two revisions of page Main Page.
- api.php?action=undelete&title=Main%20Page&token=123ABC×tamps=2007-07-03T22:00:45Z|2007-07-02T19:48:56Z [otwórz w brudnopisie]