Bantuan API MediaWiki
Ini merupakan laman dokumentasi MediaWiki API yang dihasilkan secara automatik.
Dokumentasi dan contoh-contoh: https://www.mediawiki.org/wiki/API
prop=langlinks (ll)
- Modul ini memerlukan hak membaca.
- Source: MediaWiki
- License: GPL-2.0-or-later
Returns all interlanguage links from the given pages.
Parameter:
- 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
- Asal: ascending
- llinlanguagecode
Language code for localised language names.
- Asal: ms
- lllimit
How many langlinks to return.
- Type: integer or max
- The value must be between 1 and 500.
- Asal: 10
- llcontinue
When more results are available, use this to continue.
- llurl
- Lapuk.
Whether to get the full URL (cannot be used with llprop).
- Type: boolean (details)
Contoh:
- Get interlanguage links from the page Main Page.
- api.php?action=query&prop=langlinks&titles=Main%20Page&redirects= [open in sandbox]