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=tag
(main | tag)
- 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+
Add or remove change tags from individual revisions or log entries.
Các tham số:
- rcid
One or more recent changes IDs from which to add or remove the tag.
- Type: list of integers
- Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
- revid
One or more revision IDs from which to add or remove the tag.
- Type: list of integers
- Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
- logid
One or more log entry IDs from which to add or remove the tag.
- Type: list of integers
- Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
- add
Tags to add. Only manually defined tags can be added.
- Các giá trị (phân tách bằng |):
- remove
Tags to remove. Only tags that are either manually defined or completely undefined can be removed.
- Phân tách các giá trị bằng |. Maximum number of values is 50 (500 for bots).
- reason
Reason for the change.
- Mặc định: (trống)
- token
A "csrf" token retrieved from action=query&meta=tokens
- Tham số này là bắt buộc.
Các ví dụ:
- Add the vandalism tag to revision ID 123 without specifying a reason
- api.php?action=tag&revid=123&add=vandalism&token=123ABC
- Remove the spam tag from log entry ID 123 with the reason Wrongly applied
- api.php?action=tag&logid=123&remove=spam&reason=Wrongly+applied&token=123ABC