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/API
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:
- type
Type of revision deletion being performed.
- Tento parametr je povinný.
- Jedna z následujÃcÃch hodnot: revision, archive, oldimage, filearchive, logging
- target
Page title for the revision deletion, if required for the type.
- ids
Identifiers for the revisions to be deleted.
- Tento parametr je povinný.
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- hide
What to hide for each revision.
- Hodnoty (oddÄlené | nebo alternativou.): content, comment, user
- show
What to unhide for each revision.
- Hodnoty (oddÄlené | nebo alternativou.): content, comment, user
- suppress
Whether to suppress data from administrators as well as others.
- Jedna z následujÃcÃch hodnot: yes, no, nochange
- Implicitnà hodnota: nochange
- reason
Reason for the deletion or undeletion.
- tags
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.
- Tento parametr je povinný.
PÅÃklady:
- Hide content for revision 12345 on the page Main Page.
- api.php?action=revisiondelete&target=Main%20Page&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]