Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
Fork of
Talk-to-mainspace redirects, except subpages
by
Wbm1058
This query is marked as a draft
This query has been published
by
Wbm1058
.
Toggle Highlighting
SQL
SELECT concat( "[https://en.wikipedia.org/w/index.php?title={{urlencode:", p.page_title, "}}&redirect=no ", p.page_title, "] redirects to [[Talk:", r.rd_title, "]]" ) AS "Mainspace-to-talk redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from WHERE r.rd_namespace != 0 AND r.rd_namespace != 4 AND r.rd_namespace != 10 AND r.rd_namespace != 12 AND r.rd_namespace != 14 AND r.rd_namespace != 100 AND r.rd_namespace != -1 AND p.page_namespace = 0 ORDER by page_title; SELECT concat( "[https://en.wikipedia.org/w/index.php?title={{urlencode:", p.page_title, "}}&redirect=no ", p.page_title, "] redirects to [[Special:", r.rd_title, "]]" ) AS "Mainspace-to-special page redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from WHERE p.page_namespace = 0 AND r.rd_namespace = -1 ORDER by page_title; /* SELECT concat( "[https://en.wikipedia.org/w/index.php?title={{urlencode:", p.page_title, "}}&redirect=no ", p.page_title, "] redirects to [[User talk:", r.rd_title, "]]" ) AS "Mainspace-to-user talk redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from WHERE p.page_namespace = 0 AND r.rd_namespace = 3 ORDER by page_title; SELECT concat( "[https://en.wikipedia.org/w/index.php?title={{urlencode:", p.page_title, "}}&redirect=no ", p.page_title, "] redirects to [[Wikipedia talk:", r.rd_title, "]]" ) AS "Mainspace-to-project talk redirects" FROM redirect r INNER JOIN page p ON p.page_id = r.rd_from WHERE p.page_namespace = 0 AND r.rd_namespace = 5 ORDER by page_title; */
By running queries you agree to the
Cloud Services Terms of Use
and you irrevocably agree to release your SQL under
CC0 License
.
Submit Query
Stop Query
All SQL code is licensed under
CC0 License
.
Checking query status...