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/API
prop=categories (cl)
- 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:
- 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.): sortkey, timestamp, hidden
- clshow
Which kind of categories to show.
- Hodnoty (oddÄlené | nebo alternativou.): hidden, !hidden
- cllimit
Kolik kategorià má být zobrazeno.
- Nenà dovoleno vÃce než 500 (5 000 pro boty).
- Type: integer or max
- Implicitnà hodnota: 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.
- Hodnoty oddÄlujte pomocà | nebo alternativou. Maximálnà poÄet hodnot je 50 (pro boty 500).
- cldir
The direction in which to list.
- Jedna z následujÃcÃch hodnot: ascending, descending
- Implicitnà hodnota: 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]