Fork of Talk-to-mainspace redirects, except subpages by Wbm1058
This query is marked as a draft This query has been published by Wbm1058.

SQL

AخA
 
SELECT concat( "[https://en.wikipedia.org/w/index.php?title=Talk:{{urlencode:",
              p.page_title, "}}&redirect=no Talk:", p.page_title, "] redirects to [[Talk:", r.rd_title, "]]" )
AS "Articles with talk page redirects"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
INNER JOIN page mp ON p.page_title = mp.page_title
LEFT JOIN categorylinks ON p.page_id = cl_from
WHERE mp.page_namespace = 0
AND   p.page_namespace = 1
AND   r.rd_namespace = 1
AND   mp.page_is_redirect = 0
AND   p.page_title != r.rd_title
AND   (cl_from IS NULL OR cl_to = "Redirects_for_discussion_with_talk_page_redirects")
ORDER by p.page_title
LIMIT 3000;
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.

Checking query status...