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=automatictranslationdenselanguages

(main | query | automatictranslationdenselanguages)
  • Ten moduł wymaga praw odczytu.
  • Źródło: ContentTranslation
  • Licencja: GPL-2.0-or-later

Fetch the list of sitelinks for the article that corresponds to a given Wikidata ID, ordered by article size.

Parametry:
Other general parameters are available.
qid

The Wikidata ID.

Ten parametr jest wymagany.
section-titles

A boolean value indicating whether the section titles should be included in the response.

Typ: wartość boolowska (szczegóły)
limit

The maximum number of sitelinks to fetch.

Typ: liczba całkowita
Domyślnie: 15
Przykłady:
Fetch the list of sitelinks for the 'Moon' article in all available languages, sorted by article size.
api.php?action=query&list=automatictranslationdenselanguages&qid=Q405&limit=15 [otwórz w brudnopisie]
Fetch the list of sitelinks for the 'Moon' article, including the section titles, in all available languages, sorted by article size.
api.php?action=query&list=automatictranslationdenselanguages&qid=Q405&section-titles=true [otwórz w brudnopisie]