Помоћ око Медијавикијевог API-ја
Ово је аутоматски генерисана документација за Медијавики API
Документација и примери: -{R|https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page}-
prop=langlinks (ll)
- This module requires read rights.
- Извор: MediaWiki
- Лиценца: GPL-2.0-or-later
Returns all interlanguage links from the given pages.
Специфични параметри:
Other general parameters are available.
- llprop
Which additional properties to get for each interlanguage link:
- url
- Adds the full URL.
- langname
- Adds the localised language name (best effort). Use llinlanguagecode to control the language.
- autonym
- Adds the native language name.
- Values (separate with | or alternative): autonym, langname, url
- lllang
Only return language links with this language code.
- lltitle
Link to search for. Must be used with lllang.
- lldir
The direction in which to list.
- One of the following values: ascending, descending
- Default: ascending
- llinlanguagecode
Language code for localised language names.
- Default: sr
- lllimit
How many langlinks to return.
- Type: integer or max
- The value must be between 1 and 500.
- Default: 10
- llcontinue
When more results are available, use this to continue. More detailed information on how to continue queries can be found on mediawiki.org.
- llurl
- Deprecated.
Whether to get the full URL (cannot be used with llprop).
- Type: boolean (details)
Пример:
- Get interlanguage links from the page Главна страна.
- api.php?action=query&prop=langlinks&titles=%D0%93%D0%BB%D0%B0%D0%B2%D0%BD%D0%B0%20%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B0&redirects= [open in sandbox]