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, 106, 107, 112, 113, 114, 115, 116, 117, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 220, 221, 222, 223, 224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 235, 236, 237, 238, 239, 240, 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 302, 303, 308, 309, 312, 313, 314, 315, 2300, 2301, 2302, 2303
- Die maximale Anzahl von Werten beträgt 50 (500 für Clients, denen höhere Limits erlaubt sind).
- Um alle Werte anzugeben, verwende *.
- tllimit
Wie viele Vorlagen zurückgegeben werden sollen.
- Typ: Ganzzahl oder max
- Der Wert muss zwischen 1 und 500 liegen.
- 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, denen höhere Limits erlaubt sind).
- 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]