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)
  • Este módulo requiere permisos de lectura.
  • Este módulo puede utilizarse como un generador.
  • Fuente: MediaWiki
  • Licencia: GPL-2.0+

Devuelve todas las páginas transcluidas en las páginas dadas.

Parámetros:
tlnamespace

Show templates in this namespaces only.

Valores (separados por |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 2300, 2301, 2302, 2303
tllimit

Cuántas plantillas se devolverán.

No se permite más de 500 (5000 para los bots).
Tipo: entero o max
Predeterminado: 10
tlcontinue

Cuando haya más resultados disponibles, utiliza esto para continuar.

tltemplates

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

Separar los valores con |. El número máximo de los valores es 50 (500 para los bots).
tldir

The direction in which to list.

Uno de los siguientes valores: ascending, descending
Predeterminado: ascending
Ejemplos:
Get the templates used on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page [open in sandbox]
Get information about the template pages used on Main Page.
api.php?action=query&generator=templates&titles=Main%20Page&prop=info [open in sandbox]
Get pages in the Usuario and Plantilla namespaces that are transcluded on the page Main Page.
api.php?action=query&prop=templates&titles=Main%20Page&tlnamespace=2|10 [open in sandbox]