MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

list=random (rn)

(main | query | random)
  • Denne modulen krever lesetilgang.
  • Denne modulen kan brukes som en generator.
  • Kilde: MediaWiki
  • Lisens: GPL-2.0-or-later

Hent et sett av tilfeldige sider.

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.

Parametre:
rnnamespace

Return pages in these namespaces only.

Verdier (separer med | eller alternativ): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 106, 107, 274, 275, 2300, 2301, 2302, 2303
For å angi alle verdier, bruk *.
rnfilterredir

How to filter for redirects.

Én av følgende verdier: all, redirects, nonredirects
Standard: nonredirects
rnredirect
Utgått.

Use rnfilterredir=redirects instead.

Type: boolsk verdi (detaljer)
rnlimit

Limit how many random pages will be returned.

Ikke mer enn 500 (5 000 for botter) er tillatt.
Type: heltall eller max
Standard: 1
rncontinue

Når flere resultater er tilgjengelige, bruk denne for å fortsette.

Eksempler:
Return two random pages from the main namespace.
api.php?action=query&list=random&rnnamespace=0&rnlimit=2 [åpne i sandkasse]
Return page info about two random pages from the main namespace.
api.php?action=query&generator=random&grnnamespace=0&grnlimit=2&prop=info [åpne i sandkasse]