Ajuda API da MediaWiki

This is an auto-generated MediaWiki API documentation page.

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

(main | query | langlinks)
  • This module requires read rights.
  • Source: MediaWiki
  • Licença: GPL-2.0+

Returns all interlanguage links from the given pages.

Parâmetros:
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.
Valores (separar com |): url, langname, autonym
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.

Um dos seguintes valores: ascending, descending
Padrão: ascending
llinlanguagecode

Language code for localised language names.

Padrão: pt-br
lllimit

Quantos links de idioma retornar.

No more than 500 (5 000 for bots) allowed.
Type: integer or max
Padrão: 10
llcontinue

When more results are available, use this to continue.

llurl
Obsoleto.

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

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