Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

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

action=visualeditor

(main | visualeditor)
  • This module is internal or unstable. Its operation may change without notice.
  • Mô đun này cần quyền đọc.
  • Source: VisualEditor
  • License: MIT

Returns HTML5 for a page from the Parsoid service.

Các tham số:
page

Trang để thực hiện các tác vụ.

This parameter is required.
badetag

If RESTBase query returned a seemingly invalid ETag, pass it here for logging purposes.

format

The format of the output.

Một trong các giá trị: json, jsonfm
Default: jsonfm
paction

Tác vụ để thực hiện.

This parameter is required.
Một trong các giá trị: metadata, parse, parsedoc, parsefragment, templatesused, wikitext
wikitext

Mã wiki để gửi cho Parsoid để nó chuyển đổi thành mã HTML (paction=parsefragment).

section

The section on which to act.

stash

When saving, set this true if you want to use the stashing API.

Type: boolean (details)
oldid

Số phiên bản để sử dụng (mặc định là phiên bản hiện tại).

editintro

Edit intro to add to notices.

pst

Biến đổi mã wiki ở chế độ chưa lưu trước khi gửi nó cho 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.

Phân tách các giá trị bằng |.
Maximum number of values is 50 (500 for clients allowed higher limits).