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.
- Lähde: ContentTranslation
- Lisenssi: GPL-2.0-or-later
Query Content Translation database for translations.
Parametrit:
Other general parameters are available.
- translationid
Translation ID.
- from
Lähdekielen koodi.
- to
Kohdekielen koodi.
- sourcetitle
Lähdesivun nimi.
- limit
The maximum number of translations to fetch.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 100
- offset
Offset into result set (optional).
- type
State of the translation.
- One of the following values: draft, published
- sectiontranslationsonly
Whether section translations should be fetched, instead of article translations
- Type: boolean (details)
esimerkkiä:
- Get translations started by the current user.
- api.php?action=query&list=contenttranslation [avaa hiekkalaatikossa]
- Get translations draft by ID.
- api.php?action=query&list=contenttranslation&translationid=94 [avaa hiekkalaatikossa]
- Find any translation for the given title between given language pair
- api.php?action=query&list=contenttranslation&from=en&to=es&sourcetitle=Hibiscus [avaa hiekkalaatikossa]