미디어위키 API 도움말

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

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

list=random (rn)

(main | query | random)
  • 이 모듈은 read 권한을 요구합니다.
  • 이 모듈은 생성기로 사용할 수 있습니다.
  • 출처: 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, 828, 829, 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.

500 초과는 허용되지 않습니다. (봇의 경우 5,000)
유형: 정수 또는 max
기본값: 1
rncontinue

더 많은 결과를 이용할 수 있을 때, 계속하려면 이것을 사용하십시오.

예시:
Return two random pages from the main namespace.
api.php?action=query&list=random&rnnamespace=0&rnlimit=2 [연습장에서 열기]
Return page info about two random pages from the main namespace.
api.php?action=query&generator=random&grnnamespace=0&grnlimit=2&prop=info [연습장에서 열기]