미디어위키 API 도움말

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

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

action=globalpreferences

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

현재 사용자의 통합 계정 환경설정을 변경합니다.

현재 위키에 등록된 환경 설정만 지역적으로 변경할 수 있습니다.

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

Reset global preferences. Removes all, or, depending on the value of the resetkinds parameter, some types of global preferences and make them not global anymore.

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

List of types of preferences to reset when the reset option is set.

값 (|로 구분): all, registered, registered-checkmatrix, registered-multiselect, special, unused, userjs 또는 다른 문자열: all, registered, registered-checkmatrix, registered-multiselect, special, unused, userjs
기본값: all
change

List of changes, formatted name=value (e.g. skin=vector). If no value is given (not even an equals sign), e.g., preferencename|otherpreference|..., the preference will be made non-global. If any value passed contains the pipe character (|), use the alternative multiple-value separator for correct operation.

| 또는 대안으로 값을 구분합니다.
값의 최대 수는 50(더 높은 제한이 허용된 클라이언트의 경우 500)입니다.
optionname

환경 설정의 이름은 optionvalue를 통해 지정된 값으로 설정해야 합니다.

optionvalue

optionname에 지정된 환경 설정의 값입니다.

token

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

이 변수는 필수입니다.
예시:
하나의 환경 설정을 통합 계정으로 적용되지 않게 합니다.
api.php?action=globalpreferences&change=skin=&token=123ABC [연습장에서 열기]
모든 환경 설정을 통합 계정으로 적용되지 않게 합니다.
api.php?action=globalpreferences&reset=&token=123ABC [연습장에서 열기]
skinhideminor 환경설정을 변경합니다.
api.php?action=globalpreferences&change=skin=vector|hideminor=1&token=123ABC [연습장에서 열기]