MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

list=allcategories (ac)

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

Enumerate all categories.

Parametre:
acfrom

The category to start enumerating from.

accontinue

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

acto

The category to stop enumerating at.

acprefix

Search for all category titles that begin with this value.

acdir

Direction to sort in.

Én av følgende verdier: ascending, descending
Standard: ascending
acmin

Only return categories with at least this many members.

Type: heltall
acmax

Only return categories with at most this many members.

Type: heltall
aclimit

How many categories to return.

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

Which properties to get:

size
Adds number of pages in the category.
hidden
Tags categories that are hidden with __HIDDENCAT__.
Verdier (separer med | eller alternativ): size, hidden
Standard: (tom)
Eksempler:
List categories with information on the number of pages in each.
api.php?action=query&list=allcategories&acprop=size [åpne i sandkasse]
Retrieve info about the category page itself for categories beginning List.
api.php?action=query&generator=allcategories&gacprefix=List&prop=info [åpne i sandkasse]