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)
- Questo modulo richiede i diritti di lettura.
 - Fonte: MediaWiki
 - Licenza: GPL-2.0+
 
Espande tutti i template all'interno del wikitesto.
Parametri:
- title
 Titolo della pagina.
- text
 Wikitesto da convertire.
- Questo parametro è obbligatorio.
 - revid
 Revision ID, for
{{REVISIONID}}and similar variables.- Tipo: intero
 - prop
 Quale informazione ottenere.
Nota che se non è selezionato alcun valore, il risultato conterrà il codice wiki, ma l'output sarà in un formato obsoleto.
- wikitext
 - Il wikitext espanso.
 - categories
 - Any categories present in the input that are not represented in the wikitext output.
 - properties
 - Proprietà della pagina definite dalle parole magiche estese nel wikitesto.
 - volatile
 - Se l'output sia volatile e non debba essere riutilizzato altrove all'interno della pagina.
 - ttl
 - Il tempo massimo dopo il quale le memorizzazioni temporanee (cache) del risultato dovrebbero essere invalidate.
 - 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
 - Gives the JavaScript configuration variables specific to the page.
 - encodedjsconfigvars
 - Gives the JavaScript configuration variables specific to the page as a JSON string.
 - parsetree
 - The XML parse tree of the input.
 
- Valori (separati da | o alternativa): wikitext, categories, properties, volatile, ttl, modules, jsconfigvars, encodedjsconfigvars, parsetree
 - includecomments
 Whether to include HTML comments in the output.
- Tipo: booleano (dettagli)
 - generatexml
 - Deprecato.
 Generate XML parse tree (replaced by prop=parsetree).
- Tipo: booleano (dettagli)
 
Esempio:
- Expand the wikitext {{Project:Sandbox}}.
 - api.php?action=expandtemplates&text={{Project:Sandbox}} [apri in una sandbox]