Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API.

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

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-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.

Parametry:
title

Tytuł strony do przywrócenia.

This parameter is required.
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.
Maximum number of values is 50 (500 for clients allowed higher limits).
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ą | lub alternatywy.
Maximum number of values is 50 (500 for clients allowed higher limits).
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: nochange, preferences, unwatch, watch
Default: preferences
token

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

This parameter is required.