Nápověda k MediaWiki API

Toto je automaticky generovaná dokumentační stránka k MediaWiki API.

Dokumentace a příklady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

prop=categories (cl)

(main | query | categories)
  • Tento modul vyžaduje oprávnění ke čtení.
  • Tento modul lze využívat jako generátor.
  • Zdroj: MediaWiki
  • Licence: GPL-2.0-or-later

Zobrazit všechny kategorie, do kterých je stránka zařazena.

Parametry:
Other general parameters are available.
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__.
Hodnoty (oddělené | nebo alternativou.): hidden, sortkey, timestamp
clshow

Which kind of categories to show.

Hodnoty (oddělené | nebo alternativou.): !hidden, hidden
cllimit

Kolik kategorií má být zobrazeno.

Type: integer or max
Hodnota musí byť medzi 1 a 500.
Predvolené: 10
clcontinue

When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.

clcategories

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

Hodnoty oddělujte pomocí | nebo alternativou.
Maximálny počet hodnôt je 50 (500 pre klientov s povolenými vyššími limitmi).
cldir

The direction in which to list.

Jedna z následujících hodnot: ascending, descending
Predvolené: ascending
Příklady:
Get a list of categories the page Albert Einstein belongs to.
api.php?action=query&prop=categories&titles=Albert%20Einstein [otevřít v pískovišti]
Get information about all categories used in the page Albert Einstein.
api.php?action=query&generator=categories&titles=Albert%20Einstein&prop=info [otevřít v pískovišti]