Fork of Hewiki most transcluded templates without TemplateData by IKhitron
This query is marked as a draft This query has been published by Vahurzpu.

SQL

x
 
select lt_title as "template", count(tl_from) as "count"
from templatelinks
inner join linktarget on tl_target_id = lt_id
inner join categorylinks on cl_from = page_id
inner join page on lt_title = page_title
where tl_namespace = 10
and page_namespace = 10
 and not exists
(select * from page_props
 where pp_page = page_id
 and pp_propname = "templatedata")
group by lt_title
order by count(tl_from) desc
limit 100
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.

Checking query status...