MediaWiki-API-Hilfe
Dies ist eine automatisch generierte MediaWiki-API-Dokumentationsseite.
Dokumentation und Beispiele: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
prop=templates (tl)
- Dieses Modul erfordert Leserechte.
 - Dieses Modul kann als Generator verwendet werden.
 - Quelle: MediaWiki
 - Lizenz: GPL-2.0-or-later
 
Returns all pages transcluded on the given pages.
Parameter:
- tlnamespace
 Show templates in these namespaces only.
- Werte (mit | trennen oder Alternative): -1, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15
 - Um alle Werte anzugeben, verwende *.
 - tllimit
 Wie viele Vorlagen zurückgegeben werden sollen.
- Typ: Ganzzahl oder max
 - Der Wert muss zwischen 1 und 500 sein.
 - Standard: 10
 - tlcontinue
 Falls weitere Ergebnisse verfügbar sind, dies zum Fortfahren verwenden.
- tltemplates
 Only list these templates. Useful for checking whether a certain page uses a certain template.
- Werte mit | trennen oder Alternative.
 - Die maximale Anzahl von Werten beträgt 50 (500 für Clients, die höhere Limits erlauben).
 - tldir
 Die Auflistungsrichtung.
- Einer der folgenden Werte: ascending, descending
 - Standard: ascending
 
Beispiele:
- Get the templates used on the page Main Page.
 - api.php?action=query&prop=templates&titles=Main%20Page [in Spielwiese öffnen]
 - Get information about the template pages used on Main Page.
 - api.php?action=query&generator=templates&titles=Main%20Page&prop=info [in Spielwiese öffnen]
 - Get pages in the Benutzer and Vorlage namespaces that are transcluded on the page Main Page.
 - api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [in Spielwiese öffnen]