SQL
x
SELECT
tl_from,
tl_target_id,
page_id AS template_id
FROM templatelinks
JOIN linktarget ON lt_id = tl_target_id
JOIN page ON page_namespace = lt_namespace AND page_title = lt_title
WHERE tl_from >= 0
AND tl_target_id > 0
ORDER BY tl_from, tl_target_id
LIMIT 100000
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.