MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

Documentation and examples: https://www.mediawiki.org/wiki/API

(main | query | langlinks)
  • Denna modul kräver läsrättigheter.
  • Source: MediaWiki
  • License: GPL-2.0+

Returns all interlanguage links from the given pages.

Parametrar:
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.
Värden (separerade med | eller alternativ): url, langname, autonym
lllang

Only return language links with this language code.

lltitle

Link to search for. Must be used with lllang.

lldir

Riktningen att lista mot.

Ett av följande värden: ascending, descending
Default: ascending
llinlanguagecode

Language code for localised language names.

Default: sv
lllimit

How many langlinks to return.

Inte mer än 500 (5 000 för robotar) tillåts.
Type: integer or max
Default: 10
llcontinue

When more results are available, use this to continue.

llurl
Föråldrad.

Whether to get the full URL (cannot be used with llprop).

Type: boolean (details)
Example:
Get interlanguage links from the page Main Page.
api.php?action=query&prop=langlinks&titles=Main%20Page&redirects= [open in sandbox]