Bantuan API MediaWiki

Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.

Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API

action=cxpublishsection

(main | cxpublishsection)
  • 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 a section created using the Content Translation extension's section translation feature.

Parameter:
Other general parameters are available.
title

The title of the page to perform actions on.

This parameter is required.
html

The content to save.

This parameter is required.
sourcelanguage

Kod bahasa sumber.

This parameter is required.
targetlanguage

The target language code.

This parameter is required.
sourcetitle

The title of the source page.

This parameter is required.
sourcerevid

The source page revision id.

This parameter is required.
sourcesectiontitle

The title of the source section.

This parameter is required.
targetsectiontitle

The title of the target section.

This parameter is required.
sectiontranslationid

The section translation id associated with the draft section translation.

This parameter is required.
Type: integer
publishtarget

The publishing target of the section translation. Possible values: 'SANDBOX', 'NEW_SECTION', 'EXPAND' and 'REPLACE'.

One of the following values: EXPAND, NEW_SECTION, REPLACE, SANDBOX
existingsectiontitle

The title of the existing section that is going to be expanded.

captchaid

Captcha ID (when saving with a captcha response).

captchaword

Answer to the captcha (when saving with a captcha response).

token

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

This parameter is required.