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
prop=langlinks (ll)
- Ten moduÅ wymaga praw odczytu.
- ŹródÅo: MediaWiki
- Licencja: GPL-2.0-or-later
Zwraca wszystkie linki jÄzykowe z podanych stron.
Parametry:
- llprop
Which additional properties to get for each interlanguage link:
- url
- Dodaje peÅny adres URL.
- langname
- Adds the localised language name (best effort). Use llinlanguagecode to control the language.
- autonym
- Adds the native language name.
- WartoÅci (oddziel za pomocÄ | lub alternatywy): 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.
- Jedna z nastÄpujÄ cych wartoÅci: ascending, descending
- DomyÅlnie: ascending
- llinlanguagecode
Language code for localised language names.
- DomyÅlnie: pl
- lllimit
How many langlinks to return.
- Type: integer or max
- WartoÅÄ musi znajdowaÄ siÄ pomiÄdzy 1 a 500.
- DomyÅlnie: 10
- llcontinue
Gdy bÄdzie dostÄpnych wiÄcej wyników, użyj tego do kontynuowania.
- llurl
- PrzestarzaÅe.
Whether to get the full URL (cannot be used with llprop).
- Type: boolean (details)
PrzykÅad:
- Get interlanguage links from the page Main Page.
- api.php?action=query&prop=langlinks&titles=Main%20Page&redirects= [otwórz w brudnopisie]