Pomoc MediaWiki API

To jest automatycznie wygenerowana strona dokumentacji MediaWiki API. Dokumentacja i przykłady: https://www.mediawiki.org/wiki/API

(main | query | links)
  • Ten moduł wymaga praw odczytu.
  • Ten moduł może być użyty jako generator.
  • Źródło: MediaWiki
  • Licencja: GPL-2.0+

Returns all links from the given pages.

Parametry:
plnamespace

Show links in these namespaces only.

Wartości (oddziel za pomocą |): 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

Liczba linków do zwrócenia.

Nie więcej niż 500 (5000 dla botów) dozwolone.
Type: integer or max
Domyślnie: 10
plcontinue

When more results are available, use this to continue.

pltitles

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

Oddziel wartości za pomocą |. Maksymalna liczba wartości to 50 (500 dla botów).
pldir

The direction in which to list.

Jedna z następujących wartość: ascending, descending
Domyślnie: ascending
Przykłady:
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 Użytkownik and Szablon namespaces.
api.php?action=query&prop=links&titles=Main%20Page&plnamespace=2|10 [open in sandbox]