Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=sxsave
(main | sxsave)
- Modul ini dalaman atau tidak stabil. Operasinya boleh berubah tanpa amaran.
- Modul ini memerlukan hak membaca.
- Modul ini memerlukan hak menulis.
- Modul ini menerima permohonan POST sahaja.
- Source: ContentTranslation
- License: GPL-2.0-or-later
Save the draft section translation and store the parallel corpora
Parameter:
Other general parameters are available.
- sourcelanguage
The source language code.
- This parameter is required.
- targetlanguage
The target language code.
- This parameter is required.
- sourcetitle
The title of the source page.
- This parameter is required.
- targettitle
The title of the target page.
- This parameter is required.
- content
JSON-encoded section data. Each section is an object and has the following keys: content, sectionId, origin, validate
- This parameter is required.
- sourcerevision
The source page revision id.
- This parameter is required.
- Type: integer
- sourcesectiontitle
The title of the source section.
- This parameter is required.
- targetsectiontitle
The title of the target section.
- This parameter is required.
- sectionid
The page section id.
- This parameter is required.
- issandbox
Use a sandbox title for translation.
- Type: boolean (details)
- progress
The progress of the translation.
- This parameter is required.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.