MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

action=undelete

(main | undelete)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul írási jogot igényel.
  • Ez a modul csak POST kéréseket fogad el.
  • Forrás: MediaWiki
  • Licenc: 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.

Paraméterek:
title

Title of the page to restore.

Ez a paraméter kötelező.
reason

Reason for restoring.

Alapértelmezett: (üres)
tags

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

Értékek (elválasztó: | vagy más):
timestamps

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

Típus: időbélyegek listája (engedélyezett formátumok)
Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
fileids

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

Típus: egészek listája
Separate values with | or alternative. Maximum number of values is 50 (500 for bots).
watchlist

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

A következő értékek egyike: watch, unwatch, preferences, nochange
Alapértelmezett: preferences
token

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

Ez a paraméter kötelező.