MediaWiki API súgó

Ez egy automatikusan generált MediaWiki API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/API

prop=categories (cl)

(main | query | categories)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul használható generátorként.
  • Forrás: MediaWiki
  • Licenc: GPL-2.0+

List all categories the pages belong to.

Paraméterek:
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__.
Értékek (elválasztó: |): sortkey, timestamp, hidden
clshow

Which kind of categories to show.

Értékek (elválasztó: |): hidden, !hidden
cllimit

How many categories to return.

Nem engedélyezett több mint 500 (botoknak 5 000).
Típus: egész vagy max
Default: 10
clcontinue

When more results are available, use this to continue.

clcategories

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

Separate values with |. Maximum number of values is 50 (500 for bots).
cldir

The direction in which to list.

A következő értékek egyike: ascending, descending
Default: ascending
Examples:
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]
A lap eredeti címe: „https://hu.opensuse.org/Speciális:ApiHelp