Справка MediaWiki API

This is an auto-generated MediaWiki API documentation page.

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

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

Returns all links from the given pages.

Параметры:
plnamespace

Show links in these namespaces only.

Значения (разделённые |): 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 100, 101, 102, 103, 104, 105, 106, 107, 110, 111
pllimit

How many links to return.

Разрешено не более чем 500 (5000 для ботов).
Тип: целое число или max
По умолчанию: 10
plcontinue

Когда доступно больше результатов, использовать этот чтобы продолжить.

pltitles

Only list links to these titles. Useful for checking whether a certain page links to a certain title.

Разделяйте значения с помощью |. Максимальное количество значений должно быть 50 (500 для ботов).
pldir

The direction in which to list.

Одно из следующих значений: ascending, descending
По умолчанию: ascending
Примеры:
Get links from the page Main Page
api.php?action=query&prop=links&titles=Main%20Page [open in sandbox]
Get information about the link pages in the page Main Page.
api.php?action=query&generator=links&titles=Main%20Page&prop=info [open in sandbox]
Get links from the page Main Page in the Участник and Шаблон namespaces.
api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10 [open in sandbox]