MediaWiki-API-Hilfe
Dies ist eine automatisch generierte MediaWiki-API-Dokumentationsseite.
Dokumentation und Beispiele: https://www.mediawiki.org/wiki/API/de
action=undelete
- Dieses Modul erfordert Leserechte.
 - Dieses Modul erfordert Schreibrechte.
 - Dieses Modul akzeptiert nur POST-Anfragen.
 - Quelle: MediaWiki
 - Lizenz: GPL-2.0+
 
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
 Titel der wiederherzustellenden Seite.
- Dieser Parameter ist erforderlich.
 - reason
 Grund für die Wiederherstellung.
- Standard: (leer)
 - tags
 Auf den Lösch-Logbuch-Eintrag anzuwendende Änderungsmarkierungen.
- Werte (mit | trennen oder Alternative):
 - timestamps
 Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Typ: Liste von Zeitstempeln (erlaubte Formate)
 - Werte mit | trennen oder Alternative. Maximale Anzahl der Werte ist 50 (500 für Bots).
 - fileids
 IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Typ: Liste von Ganzzahlen
 - Werte mit | trennen oder Alternative. Maximale Anzahl der Werte ist 50 (500 für Bots).
 - watchlist
 Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Einer der folgenden Werte: watch, unwatch, preferences, nochange
 - Standard: preferences
 - token
 Ein „csrf“-Token abgerufen von action=query&meta=tokens
- Dieser Parameter ist erforderlich.
 
- Undelete page Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page [in Spielwiese öffnen]
 - 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 [in Spielwiese öffnen]