미디어위키 API 도움말

이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.

설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=rollback

(main | rollback)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 write 권한을 요구합니다.
  • 이 모듈은 POST 요청만을 허용합니다.
  • 출처: MediaWiki
  • 라이선스: GPL-2.0-or-later

문서의 마지막 편집을 취소합니다.

If the last user who edited the page made multiple edits in a row, they will all be rolled back.

특정 변수:
Other general parameters are available.
title

Title of the page to roll back. Cannot be used together with pageid.

pageid

Page ID of the page to roll back. Cannot be used together with title.

유형: 정수
tags

되돌리기를 적용하기 위해 태그합니다.

값 (|로 구분): 또는 다른 문자열:
user

Name of the user whose edits are to be rolled back.

이 변수는 필수입니다.
형태: 사용자 이름, IP, 인터위키 이름 (예: "prefix>ExampleName"), 사용자 ID (예: "#12345") 모두에 따른 사용자
summary

Custom edit summary. If empty, default summary will be used.

기본값: (비어 있음)
markbot

Mark the reverted edits and the revert as bot edits.

유형: 불리언 (자세한 정보)
watchlist

현재 사용자의 주시목록에서 문서를 무조건적으로 추가하거나 제거하거나, 환경 설정을 사용하거나 (봇 사용자는 무시됨) 주시를 변경하지 않습니다.

다음 값 중 하나: nochange, preferences, unwatch, watch 또는 다른 문자열: nochange, preferences, unwatch, watch
기본값: preferences
watchlistexpiry

Watchlist expiry timestamp. Omit this parameter entirely to leave the current expiry unchanged.

유형: 기한 (자세한 정보)
token

"rollback" 토큰은 action=query&meta=tokens에서 가져옵니다

호환성을 위해, 웹 UI에 사용된 토큰도 허용합니다.

이 변수는 필수입니다.
예시:
대문 문서의 Example의 마지막 판을 일괄 되돌리기
api.php?action=rollback&title=%EB%8C%80%EB%AC%B8&user=Example&token=123ABC [연습장에서 열기]
Roll back the last edits to page 대문 by IP user 192.0.2.5 with summary Reverting vandalism, and mark those edits and the revert as bot edits.
api.php?action=rollback&title=%EB%8C%80%EB%AC%B8&user=192.0.2.5&token=123ABC&summary=Reverting%20vandalism&markbot=1 [연습장에서 열기]