MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=expandtemplates
- Questo modulo richiede i diritti di lettura.
- Fonte: MediaWiki
- Licenza: GPL-2.0+
Espande tutti i template all'interno del wikitesto.
- title
Titolo della pagina.
- Predefinito: API
- 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)
- templatesandboxprefix
Template sandbox prefix, as with Special:TemplateSandbox.
- Separa i valori con | o alternativa. Il numero massimo di valori è 50 (500 per i bot).
- templatesandboxtitle
Parse the page using templatesandboxtext in place of the contents of the page named here.
- templatesandboxtext
Parse the page using this page content in place of the page named by templatesandboxtitle.
- templatesandboxcontentmodel
Modello contenuto di templatesandboxtext.
- Uno dei seguenti valori: GadgetDefinition, wikitext, javascript, json, css, text, Scribunto
- templatesandboxcontentformat
Formato contenuto di templatesandboxtext.
- Uno dei seguenti valori: application/json, text/x-wiki, text/javascript, text/css, text/plain
- Expand the wikitext {{Project:Sandbox}}.
- api.php?action=expandtemplates&text={{Project:Sandbox}} [apri in una sandbox]