Trợ giúp về API MediaWiki

This is an auto-generated MediaWiki API documentation page.

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

action=stashedit

(main | stashedit)
  • This module is internal or unstable. Its operation may change without notice.
  • Mô đun này cần quyền đọc.
  • Mô đun này cần quyền ghi.
  • Mô đun này chỉ có nhận các yêu cầu POST.
  • Source: MediaWiki
  • License: GPL-2.0-or-later

Prepare an edit in shared cache.

This is intended to be used via AJAX from the edit form to improve the performance of the page save.

Các tham số:
title

Title of the page being edited.

Tham số này là bắt buộc.
section

Section number. 0 for the top section, new for a new section.

sectiontitle

The title for a new section.

text

Page content.

stashedtexthash

Page content hash from a prior stash to use instead.

summary

Change summary.

contentmodel

Content model of the new content.

Tham số này là bắt buộc.
Một trong các giá trị: GadgetDefinition, wikitext, javascript, json, css, text
contentformat

Content serialization format used for the input text.

Tham số này là bắt buộc.
Một trong các giá trị: application/json, text/x-wiki, text/javascript, text/css, text/plain
baserevid

Revision ID of the base revision.

Tham số này là bắt buộc.
Type: integer
token

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

Tham số này là bắt buộc.