Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=visualeditoredit

(main | visualeditoredit)
  • Modul ini dalaman atau tidak stabil. Operasinya boleh berubah tanpa amaran.
  • Modul ini memerlukan hak membaca.
  • Modul ini memerlukan hak menulis.
  • Modul ini menerima permohonan POST sahaja.
  • Source: VisualEditor
  • License: MIT

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

Parameter:
Other general parameters are available.
paction

Tindakan untuk dilaksanakan.

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

Halaman untuk melaksanakan tindakan.

This parameter is required.
token

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

This parameter is required.
wikitext

Wikiteks untuk bertindak.

section

Bahagian untuk bertindak.

sectiontitle

Tajuk bahagian baru.

basetimestamp

Apabila menyimpan, tetapkan cop waktu bila halaman thelah dijana. Ini bagi mengelakkan konflik suntingan.

starttimestamp

Apabila menyimpan, tetapkan cop waktu bila halaman thelah dijana. Ini bagi mengelakkan konflik suntingan.

oldid

Nombor semakan untuk digunakan. Yang asalinya semakan terkini. Gunakan 0 untuk halaman baru.

minor

Tandai sebagai suntingan kecil.

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 dihantar ke Parsoid untuk pertukaran ke wikitext.

etag

ETag untuk dihantar.

summary

Ringkasan suntingan.

captchaid

ID Captcha (apabila menyimpan dengan jawapan captcha).

captchaword

Jawapan kepada captcha (apabila menyimpan dengan jawapan captcha).

cachekey

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

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, citizen, fallback, minerva, timeless, vector, vector-2022
tags

Change tags to apply to the edit.

Asingkan nilai-nilai dengan "|".
Maximum number of values is 50 (500 for clients that are allowed higher limits).
plugins

Plugins associated with the API request.

Asingkan nilai-nilai dengan "|".
Maximum number of values is 50 (500 for clients that are 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.
mobileformat

Return parse output in a format suitable for mobile devices.

Type: boolean (details)