Ajuda API da MediaWiki

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.
  • Source: VisualEditor
  • Licença: MIT

Returns HTML5 for a page from the Parsoid service.

Parâmetros:
page

The page to perform actions on.

Este parâmetro é obrigatório.
format
(sem descrição)
One value: json, jsonfm
Padrão: jsonfm
paction

Ação a executar.

Este parâmetro é obrigatório.
One value: parse, metadata, parsefragment, serialize, serializeforcache, diff, getlanglinks
wikitext

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

oldid

O número da edição de utilização (por omissão, a versão mais recente).

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).

Type: boolean (details)