MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=expandframe

(main | expandframe)
  • This module requires read rights.
  • Source: DebugTemplates
  • License: CC-BY-SA-3.0

Expand templates and parameters in wikitext assuming a specific frame context.

Parameters:
text

The wikitext to expand.

This parameter is required.
frame

The frame context as a JSON-encoded map between parameter names and values.

Default: {}
title

A page title for context.

Default: API
Example:
Parse wikitext {{{a}}} with defined frame context.
api.php?action=expandframe&text={{{a}}}&frame={"a":"b"} [open in sandbox]