Toggle navigation
Home
New Query
Recent Queries
Discuss
Database tables
Database names
MediaWiki
Wikibase
Replicas browser and optimizer
Login
History
Fork
This query is marked as a draft
This query has been published
by
Matěj Suchánek
.
Toggle Highlighting
SQL
USE cswiki_p; SELECT CONCAT("Šablona:",page_title), rd_title, rd_namespace, COUNT(DISTINCT tl_from) AS usages 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 GROUP BY page_title ORDER BY IF(rd_namespace = 10, 1, 0), IF(page_title LIKE "Data_státu/%", 1, 0), IF(page_title LIKE "%/doc", 0, 1), usages, 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...