This issue was converted from https://jira.toolserver.org/browse/DBQ-8.
Summary: Unused templates on en.wiki
Issue type: Task - A task that needs to be done.
Priority: Minor
Status: Done
Assignee: Daniel Kinzler <daniel@brightbyte.de>
From: MZMcBride <mzmcbride@gmail.com>
Date: Sun, 06 Jan 2008 20:40:46
Would it be possible to get a list of all unused template on en.wiki. The Template: namespace is a complete mess; it's time for a major clean out. : - ) I copied and pasted the query that MediaWiki currently uses below; feel free to adapt it or write a better one. Thanks!
SELECT 'Unusedtemplates' AS type, page_title AS title,
page_namespace AS namespace, 0 AS value
FROM $page
LEFT JOIN $templatelinks
ON page_namespace = tl_namespace AND page_title = tl_title
WHERE page_namespace = 10 AND tl_from IS NULL
Version: unspecified
Severity: minor