미디어위키 API 도움말
이 페이지는 자동으로 생성된 미디어위키 API 도움말 문서입니다.
설명 문서 및 예시: https://www.mediawiki.org/wiki/API
list=random (rn)
- 이 모듈은 read 권한을 요구합니다.
- This module can be used as a generator.
- 출처: MediaWiki
- 라이선스: GPL-2.0+
Get a set of random pages.
Pages are listed in a fixed sequence, only the starting point is random. This means that if, for example, Main Page is the first random page in the list, List of fictional monkeys will always be second, List of people on stamps of Vanuatu third, etc.
변수:
- rnnamespace
Return pages in these namespaces only.
- 값 ("|"로 구분): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2300, 2301, 2302, 2303
- rnfilterredir
How to filter for redirects.
- 하나의 값: all, redirects, nonredirects
- 기본값: nonredirects
- rnredirect
- 사용 중지됨.
Use rnfilterredir=redirects instead.
- 유형: 부울 (자세한 정보)
- rnlimit
Limit how many random pages will be returned.
- No more than 500 (5,000 for bots) allowed.
- Type: integer or max
- 기본값: 1
- rncontinue
When more results are available, use this to continue.
예시:
- Return two random pages from the main namespace.
- api.php?action=query&list=random&rnnamespace=0&rnlimit=2 [open in sandbox]
- Return page info about two random pages from the main namespace.
- api.php?action=query&generator=random&grnnamespace=0&grnlimit=2&prop=info [open in sandbox]