MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

prop=categories (cl)

(main | query | categories)
  • Ta modul zahteva pravice branja.
  • This module can be used as a generator.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

List all categories the pages belong to.

Specifični parametri:
Na voljo so tudi drugi splošni parametri.
clprop

Which additional properties to get for each category:

sortkey
Adds the sortkey (hexadecimal string) and sortkey prefix (human-readable part) for the category.
timestamp
Adds timestamp of when the category was added.
hidden
Tags categories that are hidden with __HIDDENCAT__.
Values (separate with | or alternative): hidden, sortkey, timestamp
clshow

Which kind of categories to show.

Values (separate with | or alternative): !hidden, hidden
cllimit

How many categories to return.

Type: integer or max
Vrednost mora biti med 1 in 500.
Privzeto: 10
clcontinue

Ko bo na voljo več rezultatov, uporabite to za nadaljevanje. Podrobnejše informacije o nadaljevanju poizvedb lahko najdete na mediawiki.org.

clcategories

Only list these categories. Useful for checking whether a certain page is in a certain category.

Loči vrednosti z | ali alternative.
Največje število vrednosti je 50 (500 za odjemalce z večjimi dovoljenimi omejitvami)
cldir

The direction in which to list.

One of the following values: ascending, descending
Privzeto: ascending
Zgleda:
Get a list of categories the page Albert Einstein belongs to.
api.php?action=query&prop=categories&titles=Albert%20Einstein [open in sandbox]
Get information about all categories used in the page Albert Einstein.
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [open in sandbox]