MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=expandtemplates
(main | expandtemplates)
- Este módulo requiere permisos de lectura.
 - Fuente: MediaWiki
 - Licencia: GPL-2.0+
 
Expande todas las plantillas en wikitexto.
Parámetros:
- title
 Título de la página.
- Predeterminado: API
 - text
 Sintaxis wiki que se convertirá.
- Este parámetro es obligatorio.
 - revid
 Revisión de ID, para {{REVISIONID}} y variables similares.
- Tipo: entero
 - prop
 Which pieces of information to get.
Note that if no values are selected, the result will contain the wikitext, but the output will be in a deprecated format.
- wikitext
 - El wikitexto expandido.
 - categories
 - Cualesquiera categorías presentes en la entrada que no están representadas en salida de wikitexto.
 - properties
 - Propiedades de página definidas por palabras mágicas en el wikitexto.
 - volatile
 - Whether the output is volatile and should not be reused elsewhere within the page.
 - ttl
 - El tiempo máximo tras el cual deberían invalidarse los resultados en caché.
 - modules
 - Any ResourceLoader modules that parser functions have requested be added to the output. Either jsconfigvars or encodedjsconfigvars must be requested jointly with modules.
 - jsconfigvars
 - Da las variables de configuración JavaScript específicas para la página.
 - encodedjsconfigvars
 - Da las variables de configuración JavaScript específicas para la página como una cadena JSON.
 - parsetree
 - The XML parse tree of the input.
 
- Valores (separados por |): wikitext, categories, properties, volatile, ttl, modules, jsconfigvars, encodedjsconfigvars, parsetree
 - includecomments
 Whether to include HTML comments in the output.
- Tipo: booleano/lógico (detalles)
 - generatexml
 - En desuso.
 Generar un árbol de análisis XML (remplazado por prop=parsetree).
- Tipo: booleano/lógico (detalles)
 
Ejemplo:
- Expandir el wikitexto {{Project:Sandbox}}.
 - api.php?action=expandtemplates&text={{Project:Sandbox}} [open in sandbox]