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=templates (tl)

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

Vrne vse strani, prevključene na predloženih straneh.

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

Show templates in these namespaces only.

Values (separate with | or alternative): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 118, 119, 710, 711, 828, 829
To specify all values, use *.
tllimit

How many templates to return.

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

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

tltemplates

Only list these templates. Useful for checking whether a certain page uses a certain template.

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

The direction in which to list.

One of the following values: ascending, descending
Privzeto: ascending
Zgledi:
Pridobitev predlog, ki se uporabljajo na strani Glavna stran.
api.php?action=query&prop=templates&titles=Glavna%20stran [open in sandbox]
Pridobitev informacij o straneh predlog, ki se uporabljajo na strani Glavna stran.
api.php?action=query&generator=templates&titles=Glavna%20stran&prop=info [open in sandbox]
Pridobi strani v imenskih prostorih Uporabnik in Predloga, ki so vključene v stran Glavna stran.
api.php?action=query&prop=templates&titles=Glavna%20stran&tlnamespace=2|10 [open in sandbox]