MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=undelete
- Questo modulo richiede i diritti di lettura.
 - Questo modulo richiede i diritti di scrittura.
 - Questo modulo accetta solo richieste POST.
 - Fonte: MediaWiki
 - Licenza: GPL-2.0+
 
Ripristina versioni di una pagina cancellata.
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
 Titolo della pagina da ripristinare.
- Questo parametro è obbligatorio.
 - reason
 Motivo per il ripristino.
- Predefinito: (vuoto)
 - tags
 Modifica etichette da applicare all'elemento del registro delle cancellazioni.
- Valori (separati da | o alternativa):
 - timestamps
 Timestamps of the revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Tipo: elenco di timestamp (formati consentiti)
 - Separa i valori con | o alternativa. Il numero massimo di valori è 50 (500 per i bot).
 - fileids
 IDs of the file revisions to restore. If both timestamps and fileids are empty, all will be restored.
- Tipo: elenco di interi
 - Separa i valori con | o alternativa. Il numero massimo di valori è 50 (500 per i bot).
 - watchlist
 Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Uno dei seguenti valori: watch, unwatch, preferences, nochange
 - Predefinito: preferences
 - token
 Un token "csrf" recuperato da action=query&meta=tokens
- Questo parametro è obbligatorio.
 
- Undelete page Main Page.
 - api.php?action=undelete&title=Main%20Page&token=123ABC&reason=Restoring%20main%20page [apri in una sandbox]
 - 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 [apri in una sandbox]