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
أيوب
.
Toggle Highlighting
SQL
SELECT CONCAT('[[قالب:', lt.lt_title, ']]') AS TemplateName, GROUP_CONCAT(DISTINCT CONCAT('[[قالب:', p2.page_title, ']]') SEPARATOR ', ') AS UsedInPages, COUNT(DISTINCT CONCAT(p2.page_namespace, ':', p2.page_title)) AS UsageCount FROM templatelinks AS t INNER JOIN linktarget AS lt ON lt.lt_id = t.tl_target_id LEFT JOIN page AS p ON p.page_namespace = lt.lt_namespace AND p.page_title = lt.lt_title INNER JOIN page AS p2 ON t.tl_from = p2.page_id WHERE p.page_title IS NULL AND lt.lt_namespace = 10 AND p2.page_content_model = "wikitext" AND p2.page_namespace = 10 -- Фильтр для пространства имен шаблонов надеюсь GROUP BY lt.lt_title LIMIT 5000;
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...