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)
- Ta modul zahteva pravice branja.
- This module requires write rights.
- Ta modul sprejema samo zahtevke POST.
- Source: MediaWiki
- License: GPL-2.0-or-later
Izbriše in odizbriše redakcije.
Specifični parametri:
Na voljo so tudi drugi splošni parametri.
- type
Vrsta opravljanega izbrisa redacije.
- Ta parameter je obvezen.
- One of the following values: archive, filearchive, logging, oldimage, revision
- target
Naslov strani za izbris redakcije, če je potreben za to vrsto.
- ids
Identifiers for the revisions to be deleted.
- Ta parameter je obvezen.
- Loči vrednosti z | ali alternative.
- Največje število vrednosti je 50 (500 za odjemalce z večjimi dovoljenimi omejitvami)
- hide
What to hide for each revision.
- Values (separate with | or alternative): comment, content, user
- show
What to unhide for each revision.
- Values (separate with | or alternative): comment, content, user
- suppress
Whether to suppress data from administrators as well as others.
- One of the following values: no, nochange, yes
- Privzeto: nochange
- reason
Reason for the deletion or undeletion.
- tags
Tags to apply to the entry in the deletion log.
- Values (separate with | or alternative):
- token
A "csrf" token retrieved from action=query&meta=tokens
- Ta parameter je obvezen.
Zgleda:
- Skritje vsebine redakcije 12345 na strani Glavna stran.
- api.php?action=revisiondelete&target=Glavna%20stran&type=revision&ids=12345&hide=content&token=123ABC [open in 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 [open in sandbox]