Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=revisiondelete

(main | revisiondelete)
  • Modul ini memerlukan hak membaca.
  • Modul ini memerlukan hak menulis.
  • Modul ini menerima permohonan POST sahaja.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Delete and undelete revisions.

Parameter:
type

Type of revision deletion being performed.

Parameter ini diwajibkan.
One of the following values: 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.

Parameter ini diwajibkan.
Asingkan nilai-nilai dengan "|".
Bilangan nilai maksimum adalah 50 (500 untuk bot).
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
Asal: 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

Parameter ini diwajibkan.