API:Langlinks
| Langlinks | ||
|---|---|---|
| Returns all interlanguage links from the given page(s). This module cannot be used as a Generator. |
||
| Prefix | ll | |
| Required rights | none | |
| Post only? | No | |
| Generated help | Current | |
| Version added |
|
|
Gets a list of all language links from the provided pages to other languages.
Parameters[edit]
lllimit: How many langlinks to return. No more than 500 (5000 for bots) allowed. (Default: 10) 1.13+llcontinue: When more results are available, use this to continue. 1.13+llurl: Whether to get the full URL. 1.17+ (Deprecated in 1.23)llprop: Which additional properties to get for each interlanguage link. 1.23+url: Adds the full URL. 1.23+langname: Adds the localised language name (best effort, use CLDR extension). Use llinlanguagecode to control the language. 1.23+autonym: Adds the native language name. 1.23+
lllang: Language code 1.18+lltitle: Link to search for. Must be used withlllang. 1.18+lldir: The direction in which to list. 1.19+llinlanguagecode: Language code for localised language names. 1.23+
Example[edit]
Get a list of language links en:Albert Einstein has
| Result |
|---|
{
"query": {
"pages": [
{
"pageid": 736,
"ns": 0,
"title": "Albert Einstein",
"langlinks": [
{
"lang": "af",
"title": "Albert Einstein"
},
{
"lang": "als",
"title": "Albert Einstein"
},
{
"lang": "am",
"title": "አልበርት አይንስታይን"
},
{
"lang": "an",
"title": "Albert Einstein"
},
{
"lang": "ang",
"title": "Albert Einstein"
},
{
"lang": "ar",
"title": "ألبرت أينشتاين"
},
{
"lang": "arz",
"title": "البرت اينشتاين"
},
{
"lang": "as",
"title": "এলবাৰ্ট আইনষ্টাইন"
},
{
"lang": "ast",
"title": "Albert Einstein"
},
{
"lang": "ay",
"title": "Albert Einstein"
}
]
}
]
}
}
|
Possible errors[edit]
None.