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
GryffindorD
.
Toggle Highlighting
SQL
SELECT CONCAT('# [[Template:', templatelinks.tl_title, ']] (', COUNT(*), ' collegamenti)') FROM templatelinks LEFT JOIN page ON (page_namespace = templatelinks.tl_namespace AND page_title = templatelinks.tl_title) WHERE page_title IS NULL -- Verifica che il template non esista AND templatelinks.tl_namespace = 10 -- Namespace 10 per i template AND templatelinks.tl_from IN ( SELECT page_id FROM page WHERE page_namespace IN (0, 6, 10, 12, 14, 100, 102) ) GROUP BY templatelinks.tl_title ORDER BY COUNT(*) DESC LIMIT 500;
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...