미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
action=tag
(main | tag)
- 이 모듈은 read 권한을 요구합니다.
 - 이 모듈은 write 권한을 요구합니다.
 - 이 모듈은 POST 요청만을 허용합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0+
 
Add or remove change tags from individual revisions or log entries.
변수:
- rcid
 One or more recent changes IDs from which to add or remove the tag.
- 유형: 정수 목록
 - Separate values with |. Maximum number of values is 50 (500 for bots).
 - revid
 One or more revision IDs from which to add or remove the tag.
- 유형: 정수 목록
 - Separate values with |. Maximum number of values is 50 (500 for bots).
 - logid
 One or more log entry IDs from which to add or remove the tag.
- 유형: 정수 목록
 - Separate values with |. Maximum number of values is 50 (500 for bots).
 - add
 Tags to add. Only manually defined tags can be added.
- 값 ("|"로 구분):
 - remove
 Tags to remove. Only tags that are either manually defined or completely undefined can be removed.
- Separate values with |. Maximum number of values is 50 (500 for bots).
 - reason
 Reason for the change.
- 기본값: (비어 있음)
 - token
 A "csrf" token retrieved from action=query&meta=tokens
- 이 변수는 필수 입력 사항입니다.
 
예시:
- Add the vandalism tag to revision ID 123 without specifying a reason
 - api.php?action=tag&revid=123&add=vandalism&token=123ABC [open in sandbox]
 - 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 [open in sandbox]