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=stashedit

(main | stashedit)
  • 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.
  • منبع: 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.

Parameters:
title

Title of the page being edited.

This parameter is required.
section

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

sectiontitle

The title for a new section.

text

محتوای صفحه.

stashedtexthash

Page content hash from a prior stash to use instead.

summary

خلاصه تغییرات.

Default: (empty)
contentmodel

مدل محتوایی محتوای جدید

This parameter is required.
One of the following values: Campaign، css، javascript، json، text، wikitext
contentformat

Content serialization format used for the input text.

This parameter is required.
One of the following values: application/json، text/css، text/javascript، text/plain، text/x-wiki
baserevid

Revision ID of the base revision.

This parameter is required.
Type: integer
token

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

This parameter is required.