Trợ giúp về API MediaWiki
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)
- Mô đun này cần quyền đọc.
- Mô đun này cần quyền ghi.
- Mô đun này chỉ có nhận các yêu cầu POST.
- Source: MediaWiki
- License: GPL-2.0-or-later
Delete and undelete revisions.
Các tham số:
Other general parameters are available.
- type
Type of revision deletion being performed.
- This parameter is required.
- Một trong các giá trị: 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.
- Phân tách các giá trị bằng |.
- Maximum number of values is 50 (500 for clients that are allowed higher limits).
- hide
What to hide for each revision.
- Các giá trị (phân tách bằng |): comment, content, user
- show
What to unhide for each revision.
- Các giá trị (phân tách bằng |): comment, content, user
- suppress
Whether to suppress data from administrators as well as others.
- Một trong các giá trị: no, nochange, yes
- Default: nochange
- reason
Reason for the deletion or undeletion.
Tags to apply to the entry in the deletion log.
- Các giá trị (phân tách bằng |):
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Các ví dụ:
- Hide content for revision 12345 on the page Từ_điển_tri_thức_Hội_Thánh_của_Đức_Chúa_Trời.
- api.php?action=revisiondelete&target=T%E1%BB%AB%20%C4%91i%E1%BB%83n%20tri%20th%E1%BB%A9c%20H%E1%BB%99i%20Th%C3%A1nh%20c%E1%BB%A7a%20%C4%90%E1%BB%A9c%20Ch%C3%BAa%20Tr%E1%BB%9Di&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]