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

The page to perform actions on.

This parameter is required.
format
(no description)
One of the following values: json, jsonfm
Default: jsonfm
paction

Action to perform.

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

Wikitext to send to Parsoid to convert to HTML (paction=parsefragment).

section

The section on which to act.

oldid

The revision number to use (defaults to latest revision).

pst

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

Type: boolean (details)
Vojna Enciklopedija - Glavni i odgovorni urednik Branislav Kapetanović