미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=spamregex
(main | spamregex)
- 이 모듈은 read 권한을 요구합니다.
- 이 모듈은 write 권한을 요구합니다.
- 이 모듈은 POST 요청만을 허용합니다.
- 출처: Regular Expression Spam Block
- 라이선스: GPL-2.0-or-later
Add entries to SpamRegex or remove already blocked entries from it.
변수:
- do
What to do? Either add or delete.
- 이 변수는 필수입니다.
- 다음 값 중 하나: add, delete 또는 다른 문자열: add, delete
- modes
Block modes, i.e. should the phrase we're trying to block be blocked in page content (text), edit summaries (summary) or both?
- 값 (|로 구분): summary, text 또는 다른 문자열: summary, text
- phrase
The spam phrase to be blocked or removed from SpamRegex.
- 이 변수는 필수입니다.
- reason
Reason for adding an entry to SpamRegex. Mandatory when adding entries, not used when deleting.
- token
"csrf" 토큰은 action=query&meta=tokens에서 가져옵니다
- 이 변수는 필수입니다.
예시:
- Add the phrase "FooBar" with the reason "Cross-wiki spam" to SpamRegex, blocking it both in page text as well as in edit summaries
- api.php?action=spamregex&do=add&phrase=FooBar&reason=Cross-wiki%20spam&modes=summary|text&token=123ABC [연습장에서 열기]
- Remove the phrase "Test, just a test" from SpamRegex
- api.php?action=spamregex&do=delete&phrase=Test,%20just%20a%20test&token=123ABC [연습장에서 열기]