Pomoc API MediaWiki
To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.
Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
action=sxdelete
(main | sxdelete)
- Ten moduł wymaga praw odczytu.
- Ten moduł wymaga praw zapisu.
- Ten moduł akceptuje tylko żądania POST.
- Źródło: ContentTranslation
- Licencja: GPL-2.0-or-later
Delete the draft section translation and its parallel corpora from database.
Parametry:
Other general parameters are available.
- sectiontranslationid
The section translation id associated with the draft section translation.
- Ten parametr jest wymagany.
- Typ: liczba całkowita
- translationid
The translation id associated with the draft section translation.
- Ten parametr jest wymagany.
- Typ: liczba całkowita
- sectionid
The id of the section of the draft section translation.
- Ten parametr jest wymagany.
- token
Token „csrf” pobrany z action=query&meta=tokens
- Ten parametr jest wymagany.
Przykład:
- Delete a draft associated with given translation id and section id.
- api.php?action=sxdelete&translationid=1§ionid=100_20 [otwórz w brudnopisie]