Fork of Redirected old-named infoboxes to be deleted in cswiki by Matěj Suchánek
This query is marked as a draft This query has been published by Bulgu.

SQL

AخA
 
USE trwiki_p;
SELECT count(distinct tl_from), CONCAT("Şablon:",page_title), CONCAT("Şablon:",rd_title),
    CONCAT("https://tr.wikipedia.org/wiki/?redirect=no&curid=",page_id,"&action=delete") AS link
    FROM (SELECT * FROM page WHERE page_namespace = 10 AND page_is_redirect = 1) AS boxes
    JOIN redirect
        ON rd_from = page_id
    LEFT JOIN templatelinks
        ON tl_title = page_title AND tl_namespace = page_namespace
WHERE page_title LIKE "Infobox%"
AND ((tl_from IS NULL) OR (count(distinct tl_from)< 20))
GROUP BY page_title
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.
All SQL code is licensed under CC0 License.

Checking query status...