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.
  • This module requires write rights.

Returns HTML5 for a page from the Parsoid service.

Параметры:
page

The page to perform actions on.

Этот параметр является обязательным.
format
(описание отсутствует)
One value: json, jsonfm
По умолчанию: jsonfm
paction

Action to perform.

Этот параметр является обязательным.
One value: parse, parsefragment, serialize, serializeforcache, diff, getlanglinks
wikitext

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

basetimestamp

When saving, set this to the timestamp of the revision that was edited. Used to detect edit conflicts.

starttimestamp

When saving, set this to the timestamp of when the page was loaded. Used to detect edit conflicts.

oldid

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

html

HTML to send to Parsoid to convert to wikitext.

cachekey

For serialize or diff, use the result of a previous serializeforcache request with this key. Overrides html.

pst

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