MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

prop=templates (tl)

(main | query | templates)
  • Denne modulen krever lesetilgang.
  • Denne modulen kan brukes som en generator.
  • Kilde: MediaWiki
  • Lisens: GPL-2.0-or-later

Returns all pages transcluded on the given pages.

Parametre:
tlnamespace

Show templates in these namespaces only.

Verdier (separer med | eller alternativ): -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 274, 275
For å angi alle verdier, bruk *.
tllimit

How many templates to return.

Ikke mer enn 500 (5 000 for botter) er tillatt.
Type: heltall eller max
Standard: 10
tlcontinue

Når flere resultater er tilgjengelige, bruk denne for å fortsette.

tltemplates

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

Separer verdier med | eller alternativ. Maksimalt antall verdier er 50 (500 for botter)
tldir

The direction in which to list.

Én av følgende verdier: ascending, descending
Standard: ascending
Eksempler:
Get the templates used on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page [åpne i sandkasse]
Get information about the template pages used on Main Page.
api.php?action=query&generator=templates&titles=Main%20Page&prop=info [åpne i sandkasse]
Get pages in the Bruker and Mal namespaces that are transcluded on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [åpne i sandkasse]