MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=visualeditor

(main | visualeditor)
  • This module is internal or unstable. Its operation may change without notice.
  • This module requires read rights.
  • Source: VisualEditor
  • License: MIT

Returns HTML5 for a page from the Parsoid service.

Parameters:
page

Sivu, jota toiminto koskee.

This parameter is required.
format

The format of the output.

One of the following values: json, jsonfm
Default: jsonfm
paction

Suoritettava toiminto.

This parameter is required.
One of the following values: parse, metadata, wikitext, parsefragment, parsedoc, getlanglinks
wikitext

Wikiteksti joka lähetetään Parsoid-palveluun HTML-muotoon muutettavaksi (paction=parsefragment).

section

Toiminnan kohteena oleva osio.

oldid

Versionumero (oletuksena viimeisin versio)

editintro

Edit intro to add to notices.

pst

Pre-save transform wikitext before sending it to Parsoid (paction=parsefragment).

Type: boolean (details)
preload

The page to use content from if the fetched page has no content yet.

preloadparams

Parameters to substitute into the preload page, if present.

Separate values with | or alternative. Maximum number of values is 50 (500 for bots).