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/Special:MyLanguage/API:Main_page
action=revisiondelete
(main | revisiondelete)
- 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-or-later
Delete and undelete revisions.
Parametry:
Other general parameters are available.
- type
- Type of revision deletion being performed. 
- This parameter is required.
- Jedna z následujících hodnot: 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.
- Hodnoty oddělujte pomocí | nebo alternativou.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
- What to hide for each revision. 
- Hodnoty (oddělené | nebo alternativou.): comment, content, user
- show
- What to unhide for each revision. 
- Hodnoty (oddělené | nebo alternativou.): comment, content, user
- suppress
- Whether to suppress data from administrators as well as others. 
- Jedna z následujících hodnot: no, nochange, yes
- Default: nochange
- reason
- Reason for the deletion or undeletion. 
- Tags to apply to the entry in the deletion log. 
- Hodnoty (oddělené | nebo alternativou.):
- token
- Token typu „csrf“ získaný pomocí action=query&meta=tokens. 
- This parameter is required.
Příklady:
- Hide content for revision 12345 on the page Hlavní strana.
- api.php?action=revisiondelete&target=Hlavn%C3%AD%20strana&type=revision&ids=12345&hide=content&token=123ABC [otevřít v pískovišti]
- 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 [otevřít v pískovišti]