MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: 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

Simpan halaman HTML5 ke MediaWiki (dikonversi menjadi teks wiki melalui layanan Parsoid).

Specific parameters:
Other general parameters are available.
paction

Tindakan untuk dilakukan.

This parameter is required.
One of the following values: diff, save, serialize, serializeforcache
page

Halaman di mana tindakan akan dilakukan.

This parameter is required.
token

A "csrf" token retrieved from action=query&meta=tokens

This parameter is required.
wikitext

Teks wiki dimana tindakan akan dilakukan.

section

Bagian di mana tindakan akan dilakukan.

sectiontitle

Judul untuk bagian baru.

basetimestamp

Ketika menyimpan, atur nilai ini menjadi waktu saat revisi ini dibuat. Digunakan untuk mendeteksi konflik penyuntingan.

Type: timestamp (allowed formats)
starttimestamp

Ketika menyimpan, atur nilai ini menjadi waktu saat halaman ini dimuat. Digunakan untuk mendeteksi konflik penyuntingan.

Type: timestamp (allowed formats)
oldid

Nomor revisi yang diinginkan. Secara baku: versi terkini. Gunakan 0 untuk halaman baru.

Type: integer
minor

Tandai sebagai suntingan kecil.

watchlist

Buat atau hapus halaman tanpa syarat dari daftar pantauan pengguna saat ini, gunakan preferensi (diabaikan untuk pengguna bot) atau jangan ganti pantauan.

html

HTML untuk mengirim ke Parsoid sebagai pengganti teks wiki.

etag

ETag untuk dikirim.

summary

Ringkasan suntingan

captchaid

ID Captcha (ketika menyimpan dengan respons captcha).

captchaword

Jawaban captcha (ketika menyimpan dengan respons captcha).

cachekey

Gunakan hasil dari permintaan serializeforcache dengan kunci ini sebelumnya. Menimpa html.

nocontent

Omit the HTML content of the new revision in the response.

Type: boolean (details)
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

Tipe: judul halaman
Menerima halaman yang tidak ada.
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

Default: (empty)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

Default: (empty)
useskin

Apply the selected skin to the parser output. May affect the following properties: text, langlinks, headitems, modules, jsconfigvars, indicators.

One of the following values: apioutput, fallback, minerva, vector, vector-2022
tags

Tag perubahan untuk diterapkan pada suntingan.

Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
plugins

Plugin yang terkait dengan permintaan API.

Separate values with | or alternative.
Maximum number of values is 50 (500 for clients that are allowed higher limits).
data-{plugin}

Sembarang data yang dikirim oleh plugin dengan permintaan API.

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

Return parse output in a format suitable for mobile devices.

Type: boolean (details)