Справка MediaWiki API
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=edit
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñав на ÑÑение.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ ÑÑебÑÐµÑ Ð¿Ñава на запиÑÑ.
- ÐÑÐ¾Ñ Ð¼Ð¾Ð´ÑÐ»Ñ Ð¿ÑÐ¸Ð½Ð¸Ð¼Ð°ÐµÑ ÑолÑко Post-запÑоÑÑ.
- ÐÑÑоÑник: MediaWiki
- ÐиÑензиÑ: GPL-2.0+
СоздаÑÑ Ð¸ оÑÑедакÑиÑоваÑÑ ÑÑÑаниÑÑ.
- title
Title of the page to edit. Cannot be used together with pageid.
- pageid
Page ID of the page to edit. Cannot be used together with title.
- Тип: integer
- section
Section number. 0 for the top section, new for a new section.
- sectiontitle
Ðаголовок Ð´Ð»Ñ Ð½Ð¾Ð²Ð¾Ð³Ð¾ Ñаздела.
- text
СодеÑжание ÑÑÑаниÑÑ.
- summary
Edit summary. Also section title when section=new and sectiontitle is not set.
- tags
Change tags to apply to the revision.
- Values (separate with |):
- minor
ÐезнаÑиÑелÑное изменение (Ð¼Ð°Ð»Ð°Ñ Ð¿Ñавка).
- Тип: двоиÑнÑй (details)
- notminor
ÐнаÑиÑелÑное изменение (обÑÑнаÑ, не «малаÑ», пÑавка).
- Тип: двоиÑнÑй (details)
- bot
ÐомеÑиÑÑ Ð¿ÑÐ°Ð²ÐºÑ ÐºÐ°Ðº ÑделаннÑÑ Ð±Ð¾Ñом.
- Тип: двоиÑнÑй (details)
- basetimestamp
Timestamp of the base revision, used to detect edit conflicts. May be obtained through action=query&prop=revisions&rvprop=timestamp.
- Тип: timestamp (allowed formats)
- starttimestamp
Timestamp when the editing process began, used to detect edit conflicts. An appropriate value may be obtained using curtimestamp when beginning the edit process (e.g. when loading the page content to edit).
- Тип: timestamp (allowed formats)
- recreate
Override any errors about the page having been deleted in the meantime.
- Тип: двоиÑнÑй (details)
- createonly
Ðе ÑедакÑиÑоваÑÑ ÑÑÑаниÑÑ, еÑли она Ñже ÑÑÑеÑÑвÑеÑ.
- Тип: двоиÑнÑй (details)
- nocreate
ÐÑбÑаÑÑваÑÑ Ð¾ÑибкÑ, еÑли ÑÑÑаниÑÑ Ð½Ðµ ÑÑÑеÑÑвÑеÑ.
- Тип: двоиÑнÑй (details)
- watch
- УÑÑаÑевÑий.
ÐобавиÑÑ ÑÑÑаниÑÑ Ðº ÑекÑÑÐµÐ¼Ñ ÑпиÑÐºÑ Ð½Ð°Ð±Ð»ÑÐ´ÐµÐ½Ð¸Ñ Ð¿Ð¾Ð»ÑзоваÑелÑ.
- Тип: двоиÑнÑй (details)
- unwatch
- УÑÑаÑевÑий.
УдалиÑÑ ÑÑÑаниÑÑ Ð¸Ð· ÑпиÑка наблÑÐ´ÐµÐ½Ð¸Ñ ÑекÑÑего полÑзоваÑелÑ.
- Тип: двоиÑнÑй (details)
- watchlist
Unconditionally add or remove the page from the current user's watchlist, use preferences or do not change watch.
- One value: watch, unwatch, preferences, nochange
- Ðо ÑмолÑаниÑ: preferences
- md5
The MD5 hash of the text parameter, or the prependtext and appendtext parameters concatenated. If set, the edit won't be done unless the hash is correct.
- prependtext
Add this text to the beginning of the page. Overrides text.
- appendtext
Add this text to the end of the page. Overrides text.
Use section=new to append a new section, rather than this parameter.
- undo
Undo this revision. Overrides text, prependtext and appendtext.
- Тип: integer
- undoafter
Undo all revisions from undo to this one. If not set, just undo one revision.
- Тип: integer
- redirect
ÐвÑомаÑиÑеÑки ÑазÑеÑаÑÑ ÑедиÑекÑÑ.
- Тип: двоиÑнÑй (details)
- contentformat
ФоÑÐ¼Ð°Ñ ÑеÑиализаÑии ÑодеÑжимого, иÑполÑзÑемÑй Ð´Ð»Ñ Ð²Ð²Ð¾Ð´Ð° ÑекÑÑа.
- One value: text/x-wiki, text/javascript, application/json, text/css, text/plain
- contentmodel
Content model of the new content.
- One value: wikitext, javascript, json, css, text
- token
A "csrf" token retrieved from action=query&meta=tokens
The token should always be sent as the last parameter, or at least after the text parameter.
- ÐÑÐ¾Ñ Ð¿Ð°ÑамеÑÑ ÑвлÑеÑÑÑ Ð¾Ð±ÑзаÑелÑнÑм.
- РедакÑиÑоваÑÑ ÑÑÑаниÑÑ
- api.php?action=edit&title=Test&summary=test%20summary&text=article%20content&basetimestamp=2007-08-24T12:34:54Z&token=123ABC
- Prepend __NOTOC__ to a page.
- api.php?action=edit&title=Test&summary=NOTOC&minor=&prependtext=__NOTOC__%0A&basetimestamp=2007-08-24T12:34:54Z&token=123ABC
- Undo revisions 13579 through 13585 with autosummary.
- api.php?action=edit&title=Test&undo=13585&undoafter=13579&basetimestamp=2007-08-24T12:34:54Z&token=123ABC