MediaWiki API help

This is an auto-generated MediaWiki API documentation page.

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

action=wblinktitles

(main | wblinktitles)
  • Questo modulo richiede i diritti di lettura.
  • Questo modulo richiede i diritti di scrittura.
  • Questo modulo accetta solo richieste POST.
  • Fonte: WikibaseRepository
  • Licenza: GPL-2.0-or-later

Associa due pagine su due wiki diversi con un elemento Wikibase.

Parametri specifici:
Sono disponibili altri parametri generali.
returnto

Titolo della pagina. Quando si effettua una modifica con un account temporaneo, durante il salvataggio, l'API potrebbe rispondere con un URL che invita chi modifica a completare l'accesso. Se questo parametro viene fornito, l'URL reindirizzerà alla pagina specificata, invece che a quella modificata.

Tipo: titolo della pagina
Accetta pagine non esistenti.
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.

Predefinito: (vuoto)
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.

Predefinito: (vuoto)
tosite

Un identificatore per il sito in cui risiede la pagina. Utilizza insieme a totitle per creare un sitelink completo.

Questo parametro è obbligatorio.
Uno dei seguenti valori:
totitle

Titolo della pagina da associare. Utilizza insieme a tosite per creare un sitelink completo.

Questo parametro è obbligatorio.
fromsite

Un identificatore per il sito in cui risiede la pagina. Utilizza insieme a fromtitle per creare un sitelink completo.

Questo parametro è obbligatorio.
Uno dei seguenti valori:
fromtitle

Titolo della pagina da associare. Utilizza insieme a fromsite per creare un sitelink completo.

Questo parametro è obbligatorio.
token

Un token "csrf" recuperato da action=query&meta=tokens

Questo parametro è obbligatorio.
bot

Mark this edit as bot. This URL flag will only be respected if the user belongs to the group "bot".

Tipo: booleano (dettagli)
Esempio:
Add a link "Hydrogen" from the English page to "Wasserstoff" at the German page
api.php?action=wblinktitles&fromsite=enwiki&fromtitle=Hydrogen&tosite=dewiki&totitle=Wasserstoff [apri in una sandbox]