Справка MediaWiki API
Это автоматически сгенерированная страница документации MediaWiki API.
Документация и примеры: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=sxsave
(main | sxsave)
- Этот модуль внутренний или нестабильный. Его операции могут измениться без предупреждения.
- Этот модуль требует прав на чтение.
- Этот модуль требует прав на запись.
- Этот модуль принимает только POST-запросы.
- Источник: ContentTranslation
- Лицензия: GPL-2.0-or-later
Save the draft section translation and store the parallel corpora
Параметры:
Other general parameters are available.
- sourcelanguage
The source language code.
- Это обязательный параметр.
- targetlanguage
The target language code.
- Это обязательный параметр.
- sourcetitle
The title of the source page.
- Это обязательный параметр.
- targettitle
The title of the target page.
- Это обязательный параметр.
- content
JSON-encoded section data. Each section is an object and has the following keys: content, sectionId, origin, validate
- Это обязательный параметр.
- sourcerevision
The source page revision id.
- Это обязательный параметр.
- Тип: целочисленное значение
- sourcesectiontitle
The title of the source section.
- Это обязательный параметр.
- targetsectiontitle
The title of the target section.
- Это обязательный параметр.
- sectionid
The page section id.
- Это обязательный параметр.
- issandbox
- ⧼apihelp-sxsave-param-issandbox⧽
- Type: boolean (details)
- isleadsection
- ⧼apihelp-sxsave-param-isleadsection⧽
- Type: boolean (details)
- token
Токен «csrf», полученный из action=query&meta=tokens
- Это обязательный параметр.