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
MdsShakil
.
Toggle Highlighting
SQL
SELECT page_title AS template_title, page_id AS template_id, page_namespace AS template_namespace, MAX(page_restrictions) AS protection_status, COUNT(*) AS usage_count FROM page JOIN templatelinks ON tl_from = page_id WHERE page_namespace = 10 -- Namespace for templates AND tl_namespace = 0 -- Namespace for article pages GROUP BY template_title, template_id, template_namespace ORDER BY usage_count DESC LIMIT 10; -- Specify the number of templates you want to retrieve
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...