Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
list=random (rn)
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñав на ÑÑение.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ Ð¼Ð¾Ð¶ÐµÑ Ð±ÑÑÑ Ð¸ÑполÑзован в каÑеÑÑве генеÑаÑоÑа.
- ÐÑÑоÑник: 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.
- Values (separate with |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
- rnfilterredir
How to filter for redirects.
- One value: all, redirects, nonredirects
- Ðо ÑмолÑаниÑ: nonredirects
- rnredirect
- УÑÑаÑевÑий.
Use rnfilterredir=redirects instead.
- Тип: двоиÑнÑй (details)
- rnlimit
Limit how many random pages will be returned.
- РазÑеÑено не более Ñем 500 (5000 Ð´Ð»Ñ Ð±Ð¾Ñов).
- Тип: Ñелое ÑиÑло или 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