Jump to content

User:Gmaxwell/lfu

From Wikipedia, the free encyclopedia

Templates that are tagged but don't begin with Non-free.. and the number of transclusions they have.

mysql> select concat('*{{tl|',tp.page_title,'}}'),count(distinct ip.page_title) as cc from templatelinks as nfm join page as tp on tp.page_id=nfm.tl_from join templatelinks as bt on bt.tl_title=tp.page_title and bt.tl_namespace=10 join page as ip on bt.tl_from=ip.page_id where nfm.tl_namespace=10 and nfm.tl_title='Non-free_media' and tp.page_namespace=10 and tp.page_title not like 'Non-free%' and ip.page_namespace=6 group by tp.page_title order by cc desc;

114 rows in set (5.75 sec)

Also, with Non-free: