Справка MediaWiki API

This is an auto-generated MediaWiki API documentation page.

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

action=wblinktitles

(main | wblinktitles)
  • Этот модуль требует прав на чтение.
  • Этот модуль требует права на запись.
  • Этот модуль принимает только Post-запросы.
  • Источник: Wikibase Repository
  • Лицензия: GPL-2.0+

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

Параметры:
tosite

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

Одно из следующих значений:
totitle

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

fromsite

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

Одно из следующих значений:
fromtitle

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

token

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

Это обязательный параметр.
bot

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

Тип: двоичный (details)
Пример:
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 [open in sandbox]