MediaWiki API súgó

Ez egy automatikusan generált MediaWiki-API-dokumentációs lap.

Dokumentáció és példák: https://www.mediawiki.org/wiki/Special:MyLanguage/API:Main_page

action=wblinktitles

(main | wblinktitles)
  • Ez a modul olvasási jogot igényel.
  • Ez a modul írási jogot igényel.
  • Ez a modul csak POST kéréseket fogad el.
  • Forrás: WikibaseClient
  • Licenc: GPL-2.0-or-later

Associates two pages on two different wikis with a Wikibase item.

Jellemző paraméterek:
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.

Típus: lapcím
Nemlétező oldalakat is elfogad
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.

Alapértelmezett: (üres)
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.

Alapértelmezett: (üres)
tosite

An identifier for the site on which the page resides. Use together with totitle to make a complete sitelink.

Ez a paraméter kötelező.
A következő értékek egyike:
totitle

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

Ez a paraméter kötelező.
fromsite

An identifier for the site on which the page resides. Use together with fromtitle to make a complete sitelink.

Ez a paraméter kötelező.
A következő értékek egyike:
fromtitle

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

Ez a paraméter kötelező.
token

Egy „csrf” token, az action=query&meta=tokens kéréssel lekérve

Ez a paraméter kötelező.
bot

A szerkesztés botszerkesztésnek jelölése. Csak akkor van hatása, ha a felhasználó tagja a „botok” csoportnak.

Típus: logikai (részletek)
Példa:
Egy „Hydrogen” angol lapról kiinduló link hozzáadása a „Wasserstoff” német lapra.
api.php?action=wblinktitles&fromsite=enwiki&fromtitle=Hydrogen&tosite=dewiki&totitle=Wasserstoff [megnyitás a homokozóban]