API:Templates

From MediaWiki.org
Jump to navigation Jump to search

Gets a list of all pages (typically templates) transcluded in the provided pages. This module can be used as a generator.

Parameters[edit]

  • tlnamespace: Only list pages in these namespaces.
  • tllimit: How many templates to return. No more than 500 (5000 for bots) allowed. (Default: 10) 1.13+
  • tlcontinue: When more results are available, use this to continue. 1.13+
  • tltemplates: Only list these templates. Useful to check whether a certain template is transcluded in a certain page. 1.17+
  • tldir: The direction in which to list. Possible values: ascending, descending 1.19+

Example[edit]

Get a list of templates used on en:Albert Einstein's page

Possible errors[edit]

None.