API:Links

From MediaWiki.org
Jump to: navigation, search

Gets a list of all links on the provided pages. This module can be used as a generator.

Parameters[edit]

  • plnamespace: Only list links to pages in these namespaces.
  • pllimit: How many links to return. No more than 500 (5000 for bots) allowed. (Default: 10) 1.13+
  • plcontinue: When more results are available, use this to continue. 1.13+
  • pltitles: Only list links to these titles. Useful for checking whether a certain page links to a certain title. 1.17+
  • pldir: The direction in which to list. Possible values: ascending, descending. (Default: ascending) 1.19+

Example[edit]

Get a list of links on en:Albert Einstein

Possible errors[edit]

None.