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)
  • Denna modul kräver läsrättigheter.

Expanderar alla mallar i wikitext.

Parametrar:
title

Sidans rubrik.

Default: API
text

Wikitext att konvertera.

Denna parameter är obligatorisk.
revid

Revision ID, för {{REVISIONID}} och liknande variabler.

prop

Which pieces of information to get:

wikitext
The expanded wikitext.
categories
Any categories present in the input that are not represented in the wikitext output.
properties
Page properties defined by expanded magic words in the wikitext.
volatile
Whether the output is volatile and should not be reused elsewhere within the page.
ttl
The maximum time after which caches of the result should be invalidated.
parsetree
The XML parse tree of the input.

Note that if no values are selected, the result will contain the wikitext, but the output will be in a deprecated format.

värden (separade med "|"): wikitext, categories, properties, volatile, ttl, parsetree
includecomments

Om HTML-kommentarer skall inkluderas i utdata.

generatexml
Föråldrad.

Generera ett XML tolknings träd (ersatt av prop=parsetree).

Example:
Expandera wikitexten {{Projekt:Sandbox}}.
api.php?action=expandtemplates&text={{Project:Sandbox}}