Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
action=cxfavoritesuggestions
(main | cxfavoritesuggestions)
- 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
Add or remove a favorite suggestion to the current user's list.
Parameter:
Other general parameters are available.
- listaction
Action to be performed on the given favorite suggestion title. Available options: 'add' and 'remove'
- This parameter is required.
- One of the following values: add, remove
- title
The title of the favorite suggestion on which the action should be performed
- This parameter is required.
- from
The source language of the favorite suggestion on which the action should be performed
- This parameter is required.
- to
The target language of the favorite suggestion on which the action should be performed
- This parameter is required.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
Contoh-contoh:
- Add a suggestion to the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=add&title=Title&from=en&to=es [open in sandbox]
- Remove a suggestion from the user's list of favorite suggestions
- api.php?action=cxfavoritesuggestions&listaction=remove&title=Title&from=en&to=es [open in sandbox]