Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=delete
(main | delete)
- 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+
Xóa trang.
Các tham số:
- title
Xóa tiêu đề của trang. Không thể sử dụng cùng với pageid.
- pageid
Xóa ID của trang. Không thể sử dụng cùng với title.
- Type: integer
- reason
Reason for the deletion. If not set, an automatically generated reason will be used.
- watch
- Bị phản đối.
Thêm trang vào danh sách theo dõi của người dùng hiện tại.
- Type: boolean (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- Một giá trị: watch, unwatch, preferences, nochange
- Mặc định: preferences
- unwatch
- Bị phản đối.
Bỏ trang này khỏi danh sách theo dõi của người dùng hiện tại.
- Type: boolean (details)
- oldimage
The name of the old image to delete as provided by action=query&prop=imageinfo&iiprop=archivename.
- token
A "csrf" token retrieved from action=query&meta=tokens
- Tham số này là bắt buộc.
Các ví dụ:
- Xóa Trang Chính.
- api.php?action=delete&title=Main%20Page&token=123ABC
- Xóa Trang Chính với lý do Chuẩn bị di chuyển.
- api.php?action=delete&title=Main%20Page&token=123ABC&reason=Preparing%20for%20move