Nápověda k MediaWiki API

Toto je automaticky generovaná dokumentační stránka k MediaWiki API.

Dokumentace a příklady: https://www.mediawiki.org/wiki/API

action=undelete

(main | undelete)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Tento modul vyžaduje oprávnění k zápisu.
  • Tento modul přijímá pouze požadavky POST.
  • Zdroj: MediaWiki
  • Licence: 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.

Tento parametr je povinný.
reason

Reason for restoring.

Implicitní hodnota: (prázdné)
tags

Change tags to apply to the entry in the deletion log.

Hodnoty (oddělené |):
timestamps

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

Type: list of timestamps (allowed formats)
Hodnoty oddělujte pomocí |. Maximální počet hodnot je 50 (pro boty 500).
fileids

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

Typ: seznam celých čísel
Hodnoty oddělujte pomocí |. Maximální počet hodnot je 50 (pro boty 500).
watchlist

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

Jedna z následujících hodnot: watch, unwatch, preferences, nochange
Implicitní hodnota: preferences
token

Token typu „csrf“ získaný pomocí action=query&meta=tokens.

Tento parametr je povinný.