MediaWiki API help
This is an auto-generated MediaWiki Action API documentation page.
action=discouragetranslation
(main | discouragetranslation)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: Translate
- License: GPL-2.0-or-later
Mark a translatable page as discouraged or not discouraged. Discouraged pages are hidden from the translation interface when searching for pages to translate, but can still be translated directly.
Specific parameters:
Other general parameters are available.
- title
The title of the page to act on. Either title or pageid must be set.
- pageid
The page ID of the page to act on. Either title or pageid must be set.
- Type: integer
- do
The desired action to perform to the page.
- discourage
- Mark the page as discouraged, causing it to be hidden from lists of pages to translate.
- encourage
- Mark the page as no longer discouraged, causing it to be shown on lists of pages to translate.
- This parameter is required.
- One of the following values: discourage, encourage
- reason
Log summary to use when logging to Special:Log/pagetranslation
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.