MediaWiki List Pages With Template
AI-generatedSummary
Lists wiki pages that transclude a given template, using the MediaWiki embeddedin API after logging in with the bot credentials. Returns one item per page, or a single item holding all pages.
Inputs
- Wiki URL — Overrides the site URL from the credentials.
/api.phpis appended unless the URL already ends with it. - Template Name (required) — Template to search for.
Template:is prepended only if the name contains no colon, so names in other namespaces need their full prefix. - Options > Limit — Maximum number of pages to return (1–5000, default 50). Results are fetched in batches of up to 500 and continued until the limit is reached.
- Options > Namespace — Restricts results to pages in one namespace (0–15). Defaults to All Namespaces.
- Options > Return Single Item — If true, returns all results in one item with an array. If false (default), returns one item per page.
Output shape
By default, one item per page with pageId, namespace (numeric), title and templateName. With Return Single Item, one item per input item with templateName, totalPages and a pages array of raw API entries (pageid, ns, title).
Requires mediaWikiApi credentials (siteUrl, botUsername, botPassword). The node logs in on each input item. Items are paired to their input item. With Continue On Fail, errors return an item with an
errormessage. If no pages match, per-page mode returns no items for that input.
Examples
Example 1: Find all main-namespace articles that use the Infobox template.
Template Name: Infobox; Options: Namespace = Main (0), Limit = 500.
Example 2: Get a single JSON array of every page using a template for a downstream Code node.
Template Name: Template:Citation needed; Options: Return Single Item = true, Limit = 5000.