MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/API
action=translationstash
(main | translationstash)
- This module requires read rights.
- This module requires write rights.
- This module only accepts POST requests.
- Source: Translate
- License: GPL-2.0+
Add translations to stash.
Parameters:
- subaction
Action.
- This parameter is required.
- One of the following values: add, query
- title
Title of the translation unit page.
- translation
Translation made by the user.
- metadata
JSON object.
- token
A "csrf" token retrieved from action=query&meta=tokens
- This parameter is required.
- username
Optionally the user whose stash to get. Only privileged users can do this.
Examples:
- Add a translation to the stash for MediaWiki:Jan/fi
- api.php?action=translationstash&subaction=add&title=MediaWiki:Jan/fi&translation=tammikuu&metadata={} [open in sandbox]
- Query the stash
- api.php?action=translationstash&subaction=query [open in sandbox]