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
Chlod
.
Tracking migration of {{Storm path}} templates across Wikipedia to the new color scheme. Only checks articles and drafts.
Toggle Highlighting
SQL
SET @TOTAL = ( SELECT COUNT(*) FROM templatelinks LEFT JOIN linktarget ON tl_target_id = lt_id WHERE tl_target_id IN ( (SELECT lt_id FROM linktarget WHERE lt_namespace = 10 AND lt_title = "Storm_path") ) AND (tl_from_namespace = 0 OR tl_from_namespace = 118) ); SET @OLD = ( SELECT COUNT(*) FROM categorylinks JOIN page ON page_id = cl_from WHERE cl_to = "Pages_using_obsolete_storm_path_colors" AND (page_namespace = 0 OR page_namespace = 118) ); SELECT @TOTAL AS "Total", @OLD AS "Old colors", (@TOTAL - @OLD) AS "New colors", CONCAT((@TOTAL - @OLD)/@TOTAL * 100, "%") AS "Migration progress";
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...