Помощ за МедияУики API

Това е автоматично генерирана страница за документация на МедияУики API.

Документация и примери: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=visualeditoredit

(main | visualeditoredit)
  • This module is internal or unstable. Its operation may change without notice.
  • This module requires read rights.
  • This module requires write rights.
  • This module only accepts POST requests.
  • Source: VisualEditor
  • License: MIT

Save an HTML5 page to MediaWiki (converted to wikitext via the Parsoid service).

Parameters:
paction

Действие за извършване.

This parameter is required.
Една от следните стойности: diff, save, serialize, serializeforcache
page

Страница, върху която да се извършат действията.

This parameter is required.
token

Маркер „csrf“, получен от action=query&meta=tokens

This parameter is required.
wikitext

The wikitext to act with.

section

Раздел, върху който да се извършат действията.

sectiontitle

Заглавие на новия раздел.

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. Use 0 for a new page.

minor

Маркиране като малка редакция.

watchlist

Unconditionally add or remove the page from the current user's watchlist, use preferences (ignored for bot users) or do not change watch.

html

HTML to send to Parsoid in exchange for wikitext.

etag

ETag за изпращане.

summary

Резюме на редакцията.

captchaid

Captcha ID (when saving with a captcha response).

captchaword

Answer to the captcha (when saving with a captcha response).

cachekey

Use the result of a previous serializeforcache request with this key. Overrides html.

tags

Change tags to apply to the edit.

За разделител на стойностите използвайте | или алтернативния разделител.
Maximum number of values is 50 (500 for clients allowed higher limits).
plugins

Plugins associated with the API request.

За разделител на стойностите използвайте | или алтернативния разделител.
Maximum number of values is 50 (500 for clients allowed higher limits).
data-{plugin}

Arbitrary data sent by a plugin with the API request.

This is a templated parameter. When making the request, {plugin} in the parameter's name should be replaced with values of plugins.