MediaWiki API ヘルプ

このページは自動生成された MediaWiki API の説明文書ページです。

説明文書と例: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=visualeditoredit

(main | visualeditoredit)
  • このモジュールは内部的または不安定です。動作が予告なく変更される場合があります。
  • このモジュールは読み取りの権限を必要とします。
  • このモジュールは書き込みの権限を必要とします。
  • このモジュールは POST リクエストのみを受け付けます。
  • ソース: VisualEditor
  • ライセンス: MIT

HTML5ページを MediaWiki として保存する (Parsoidサービスを利用してウィキテキストに変換されます)

パラメーター:
Other general parameters are available.
paction

Action to perform.

この変数は必須です。
値 (次の値のいずれか1つ): diff、save、serialize、serializeforcache
page

操作を実行したいページ

この変数は必須です。
token

action=query&meta=tokens から取得した「csrf」トークン

この変数は必須です。
wikitext

動作を適用するウィキテキストです。

section

The section on which to act.

sectiontitle

新しい節の名前です。

basetimestamp

保存する際に、編集した版のタイムスタンプとしてこれがセットされます。編集競合を検出するのに利用されます。

Type: timestamp (allowed formats)
starttimestamp

保存する際に、ページが読み込まれた時のタイムスタンプとしてこれがセットされます。編集競合を検出するのに利用されます。

Type: timestamp (allowed formats)
oldid

使用する版番号。既定では最新版です。

型: 整数
minor

細部の編集のしるし。

watchlist

無条件に現在の利用者のウォッチリストに追加または除去するか、個人設定を利用(ボット利用者に対しては無視されます)するかウォッチを変更しないか。

html

ウィキテキストを出力として得るために、Parsoidに送るHTML

etag

ETag to send.

summary

編集の要約

captchaid

Captcha ID (captcha response で保存する場合)。

captchaword

(captchaで保存するときの) captchaに対する回答

cachekey

以前にこのキーで serializeforcache リクエストを送った結果を利用する。html を上書きします。

useskin

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

値 (次の値のいずれか1つ): apioutput、fallback、minerva、monobook、timeless、vector、vector-2022
tags

Change tags to apply to the edit.

複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
plugins

Plugins associated with the API request.

複数の値は | または代わりの文字で区切ってください。
値の最大値は 50(緩い制限が適用されるクライアントでは500)です。
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.

型: 真偽値 (詳細)