MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=revisiondelete
(main | revisiondelete)
- 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-or-later
Cancella e ripristina le versioni.
Parametri specifici:
Sono disponibili altri parametri generali.
- type
- Tipo di cancellazione della versione effettuata. 
- This parameter is required.
- Uno dei seguenti valori: archive, filearchive, logging, oldimage, revision
- target
- Page title for the revision deletion, if required for the type. 
- ids
- Identifiers for the revisions to be deleted. 
- This parameter is required.
- Separa i valori con | o alternativa.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
- Cosa nascondere per ogni versione. 
- Valori (separati da | o alternativa): comment, content, user
- show
- Cosa mostrare per ogni versione. 
- Valori (separati da | o alternativa): comment, content, user
- suppress
- Whether to suppress data from administrators as well as others. 
- Uno dei seguenti valori: no, nochange, yes
- Default: nochange
- reason
- Motivo per l'eliminazione o il ripristino. 
- Tags to apply to the entry in the deletion log. 
- Valori (separati da | o alternativa):
- token
- Un token "csrf" recuperato da action=query&meta=tokens 
- This parameter is required.
Esempi:
- Hide content for revision 12345 on the page Pagina principale.
- api.php?action=revisiondelete&target=Pagina%20principale&type=revision&ids=12345&hide=content&token=123ABC [apri in una sandbox]
- Hide all data on log entry 67890 with the reason BLP violation.
- api.php?action=revisiondelete&type=logging&ids=67890&hide=content|comment|user&reason=BLP%20violation&token=123ABC [apri in una sandbox]