미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
format=jsonfm
(main | jsonfm)
- 이 모듈은 read 권한을 요구합니다.
 - 출처: MediaWiki
 - 라이선스: GPL-2.0-or-later
 
데이터를 JSON 포맷으로 출력합니다. (HTML의 가독성 증가)
변수:
- wrappedhtml
 가독성 높은 HTML과 관련 리소스로더 모듈을 JSON 객체로 반환합니다.
- Type: boolean (details)
 - callback
 If specified, wraps the output into a given function call. For safety, all user-specific data will be restricted.
- utf8
 If specified, encodes most (but not all) non-ASCII characters as UTF-8 instead of replacing them with hexadecimal escape sequences. Default when formatversion is not 1.
- Type: boolean (details)
 - ascii
 If specified, encodes all non-ASCII using hexadecimal escape sequences. Default when formatversion is 1.
- Type: boolean (details)
 - formatversion
 출력 형식
- 1
 - (설명 없음)
 - 2
 - (설명 없음)
 - latest
 - (설명 없음)
 
- 다음 값 중 하나: 1, 2, latest 또는 다른 문자열: 1, 2, latest
 - 기본값: 1
 
예시:
- 쿼리 결과를 JSON 포맷으로 반환합니다.
 - api.php?action=query&meta=siteinfo&siprop=namespaces&format=jsonfm [연습장에서 열기]