미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=listwikis (sw)
- 이 모듈은 read 권한을 요구합니다.
- 출처: ShoutWiki API
- 라이선스: CC0-1.0
List all available wikis on ShoutWiki
변수:
- swwid
Unique, wiki-specific ID number; use this when you want to get info about a specific wiki and you know its ID number
- 유형: 정수
- swdeleted
Also list deleted wikis (optional)
- 유형: 정수
- 값은 0와 1 사이여야 합니다.
- swfrom
Get all wikis with ID that is equal to or greater than this value
- 유형: 정수
- 값은 1 이상이어야 합니다.
- swto
Get all wikis with ID that is equal to or lower than this value
- 유형: 정수
- 값은 1 이상이어야 합니다.
- swcountonly
Return only the amount of wikis
- 유형: 정수
- 값은 1 이상이어야 합니다.
- swlang
Wiki language code (i.e. en for English, fi for Finnish, etc.)
- swlimit
Get information about this many wikis at once
- 유형: 정수 또는 max
- 값은 1와 500 사이여야 합니다.
- 기본값: 100
- swstart
The timestamp to start enumerating from
- 유형: 타임스탬프 (허용되는 포맷)
- swend
The timestamp to end enumerating
- 유형: 타임스탬프 (허용되는 포맷)
- swdir
In which direction to enumerate:
- newer
- List oldest first. Note: swstart has to be before swend.
- older
- List newest first (default). Note: swstart has to be later than swend.
- 다음 값 중 하나: newer, older 또는 다른 문자열: newer, older
- 기본값: older
예시:
- Get all active wikis
- api.php?action=query&list=listwikis [연습장에서 열기]
- Also include deleted wikis in the listing
- api.php?action=query&list=listwikis&swdeleted=1 [연습장에서 열기]
- Get information about the wiki whose ID is #177
- api.php?action=query&list=listwikis&swwid=177 [연습장에서 열기]
- Get all (active) wikis with IDs ranging from 100 to 150
- api.php?action=query&list=listwikis&swfrom=100&swto=150 [연습장에서 열기]
- Show all Finnish (fi) wikis whose IDs range between 10 to 50
- api.php?action=query&list=listwikis&swfrom=10&swto=50&swlang=fi [연습장에서 열기]
- Show the total amount of active wikis
- api.php?action=query&list=listwikis&swcountonly=1 [연습장에서 열기]
- Show the total amount of all wikis ever, including deleted ones
- api.php?action=query&list=listwikis&swactive=1&swcountonly=1 [연습장에서 열기]