MediaWiki API help
This is an auto-generated MediaWiki API documentation page.
Documentation and examples: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page
list=contenttranslation
- This module requires read rights.
- This module can be used as a generator.
- Font : ContentTranslation
- Licéncia : GPL-2.0-or-later
Query Content Translation database for translations.
Paramètres :
Other general parameters are available.
- translationid
Identificació de la traducció.
- from
El codi de la llengua d'origen.
- to
El codi de la llengua de destí.
- sourcetitle
El títol de la pàgina d'origen.
- sourcesectiontitle
The title of the source section (optional).
- limit
Lo nombre maximum de traduccions de renviar.
- Type: integer or max
- The value must be between 1 and 500.
- Per defecte: 100
- offset
Offset into result set (optional).
- type
State of the translation.
- One of the following values: draft, published
- usecase
The usecase for which the translations are being fetched (optional).
- One of the following values: desktop-editor-draft, translation-corpora-units, unified-dashboard
Examples:
- Obtén les traduccions iniciades per l'usuari actual.
- api.php?action=query&list=contenttranslation [open in sandbox]
- Obtén l'esborrany de traduccions per identificació.
- api.php?action=query&list=contenttranslation&translationid=94 [open in sandbox]
- Troba traduccions per al títol donat entre un parell de llengües donades
- api.php?action=query&list=contenttranslation&from=en&to=es&sourcetitle=Hibiscus [open in sandbox]