Довідка API MediaWiki

Це автоматично генерована сторінка документації API MediaWiki.

Документація та приклади: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=sxdelete

(main | sxdelete)
  • Цей модуль вимагає прав на читання.
  • Цей модуль вимагає прав на запис.
  • Цей модуль приймає лише POST-запити.
  • Джерело: ContentTranslation
  • Ліцензія: GPL-2.0-or-later

Delete the draft section translation and its parallel corpora from database.

Конкретні параметри:
Other general parameters are available.
sectiontranslationid

The section translation id associated with the draft section translation.

Цей параметр є обов'язковим.
Тип: ціле число
translationid

The translation id associated with the draft section translation.

Цей параметр є обов'язковим.
Тип: ціле число
sectionid

The id of the section of the draft section translation.

Цей параметр є обов'язковим.
token

Токен «csrf» отримано з action=query&meta=tokens

Цей параметр є обов'язковим.
Приклад:
Delete a draft associated with given translation id and section id.
api.php?action=sxdelete&translationid=1&sectionid=100_20 [відкрити в пісочниці]