Jump to content

User:Wbm1058/Mainspace-to-talk and WP:R2 redirects

From Wikipedia, the free encyclopedia

Report generated from Quarry by running:

SQL code
SELECT concat( "[https://wiki.riteme.site/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 != 11
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://wiki.riteme.site/w/index.php?title={{urlencode:",
              p.page_title, "}}&redirect=no ", p.page_title, "] redirects to [[Template talk:", r.rd_title, "]]" )
AS "Mainspace-to-template 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 = 11
ORDER by page_title;

SELECT concat( "[https://wiki.riteme.site/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 COUNT(*)
AS "Total cross-namespace redirects from mainspace to project"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace = 4
AND   p.page_namespace = 0;

SELECT COUNT(*)
AS "Total cross-namespace redirects from mainspace to template"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace = 10
AND   p.page_namespace = 0;

SELECT COUNT(*)
AS "Total cross-namespace redirects from mainspace to help"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace = 12
AND   p.page_namespace = 0;

SELECT COUNT(*)
AS "Total cross-namespace redirects from mainspace to category"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace = 14
AND   p.page_namespace = 0;

SELECT COUNT(*)
AS "Total cross-namespace redirects from mainspace to portal"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace = 100
AND   p.page_namespace = 0;

SELECT COUNT(*)
AS "Total cross-namespace redirects from mainspace"
FROM redirect r
INNER JOIN page p ON p.page_id = r.rd_from
WHERE r.rd_namespace != 0
AND   p.page_namespace = 0;

See also

Mainspace-to-talk redirects
T:MP redirects to Talk:Main_Page
Mainspace-to-template talk redirects
T:DYKT redirects to Template talk:Did_you_know
T:TDYK redirects to Template talk:Did_you_know
T:TDYKA redirects to Template talk:Did_you_know/Approved
T:tdyk redirects to Template talk:Did_you_know
Mainspace-to-special page redirects
Longest_Wikipedia_Article redirects to Special:Longpages