Trợ giúp về API MediaWiki
This is an auto-generated MediaWiki Action API documentation page.
action=managetags
(main | managetags)
- 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
Thực hiện các nhiệm vụ quản lý liên quan đến thay đổi thẻ.
Các tham số:
Other general parameters are available.
Thao tác cần thực hiện:
- create
- Tạo một thẻ thay đổi mới để sử dụng thủ công.
- delete
- Xóa một thẻ thay đổi khỏi cơ sở dữ liệu, bao gồm xóa bỏ thẻ khỏi tất cả phiên bản, mục thay đổi gần đây và mục nhật trình được sử dụng.
- activate
- Kích hoạt thẻ thay đổi, cho phép người dùng áp dụng thủ công.
- deactivate
- Vô hiệu hóa thẻ thay đổi, ngăn chặn người dùng áp dụng thủ công.
- This parameter is required.
- Một trong các giá trị: activate, create, deactivate, delete
Tag to create, delete, activate or deactivate. For tag creation, the tag must not exist. For tag deletion, the tag must exist. For tag activation, the tag must exist and not be in use by an extension. For tag deactivation, the tag must be currently active and manually defined.
- This parameter is required.
An optional reason for creating, deleting, activating or deactivating the tag.
- Mặc định: (trống)
Whether to ignore any warnings that are issued during the operation.
- Type: boolean (details)
Change tags to apply to the entry in the tag management log.
- Các giá trị (phân tách bằng |):
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Các ví dụ:
- Create a tag named spam with the reason For use in edit patrolling
- api.php?action=managetags&operation=create&tag=spam&reason=For+use+in+edit+patrolling&token=123ABC [open in sandbox]
- Delete the vandlaism tag with the reason Misspelt
- api.php?action=managetags&operation=delete&tag=vandlaism&reason=Misspelt&token=123ABC [open in sandbox]
- Activate a tag named spam with the reason For use in edit patrolling
- api.php?action=managetags&operation=activate&tag=spam&reason=For+use+in+edit+patrolling&token=123ABC [open in sandbox]
- Deactivate a tag named spam with the reason No longer required
- api.php?action=managetags&operation=deactivate&tag=spam&reason=No+longer+required&token=123ABC [open in sandbox]