Ayuda de la API de MediaWiki

Esta es una página de documentación autogenerada de la API de MediaWiki.

Documentación y ejemplos: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wblinktitles

(main | wblinktitles)
  • Este módulo requiere permisos de lectura.
  • Este módulo requiere permisos de escritura.
  • Este módulo solo acepta solicitudes POST.
  • Fuente: WikibaseClient
  • Licencia: GPL-2.0-or-later

Asocia dos páginas de dos wikis diferentes con un elemento de Wikibase.

Parámetros específicos:
Other general parameters are available.
returnto

Page title. If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to the given page, instead of the page that was edited.

Tipo: título de página
Acepta páginas inexistentes.
returntoquery

URL query parameters (with leading ?). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given query parameters.

Predeterminado: (vacío)
returntoanchor

URL fragment (with leading #). If saving the edit created a temporary account, the API may respond with an URL that the client should visit to complete logging in. If this parameter is provided, the URL will redirect to a page with the given fragment.

Predeterminado: (vacío)
tosite

Un identificador para el sitio en el que reside la página. Úsalo junto con totitle para crear un enlace de sitio completo.

Este parámetro es obligatorio.
Uno de los siguientes valores:
totitle

Title of the page to associate. Use together with tosite to make a complete sitelink.

Este parámetro es obligatorio.
fromsite

Un identificador para el sitio en el que reside la página. Úsalo junto con fromtitle para crear un enlace de sitio completo.

Este parámetro es obligatorio.
Uno de los siguientes valores:
fromtitle

Title of the page to associate. Use together with fromsite to make a complete sitelink.

Este parámetro es obligatorio.
token

A "csrf" token retrieved from action=query&meta=tokens

Este parámetro es obligatorio.
bot

Marcar esta edición como hecha por un robot. Este parámetro funcionará solo si el usuario pertenece al grupo «bot».

Type: boolean (details)
Ejemplo:
Añadir un enlace «Hydrogen» de la página en inglés a «Wasserstoff» en la página en alemán
api.php?action=wblinktitles&fromsite=enwiki&fromtitle=Hydrogen&tosite=dewiki&totitle=Wasserstoff [abrir en la zona de pruebas]