Pomoc API MediaWiki

To jest automatycznie wygenerowana strona dokumentacji API MediaWiki.

Dokumentacja i przykłady: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

list=contenttranslationsuggestions

(main | query | contenttranslationsuggestions)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł może być użyty jako generator.
  • Źródło: ContentTranslation
  • Licencja: GPL-2.0-or-later

Get suggestion lists for Content Translation.

Parametry:
from

Kod języka źródłowego.

to

Kod języka docelowego.

listid

Return suggestions only from a particular list

limit

Maksymalna liczba zwracanych propozycji tłumaczeń.

Type: integer or max
Wartość musi znajdować się pomiędzy 1 a 500.
Domyślnie: 10
offset

Offset for paginated results.

seed

By default suggestions are returned in random order. If you wish to return each suggestion only once when using limit and offset, you must specify a seed for all the requests.

Typ: liczba całkowita
Przykład:
Fetch pages suggested for translation from English (en) to Spanish (es).
api.php?action=query&list=contenttranslationsuggestions&from=en&to=es [otwórz w brudnopisie]