Fork of Templatelinks protection checker (unprotected) by Naypta
This query is marked as a draft This query has been published by Naypta.

SQL

AخA
 
SELECT
  CONCAT("Template:", REPLACE(tl_title, "_", " ")) AS "Semi-protected template",
  count(*) AS "Uses"
FROM
  templatelinks
  INNER JOIN page ON page.page_namespace = 10 AND page.page_title = templatelinks.tl_title
  INNER JOIN page_restrictions ON page.page_id = page_restrictions.pr_page
WHERE
  tl_namespace = 10
  AND page_restrictions.pr_level = "autoconfirmed"
GROUP BY
  tl_title
HAVING
  count(*) > 500
ORDER BY
  count(*) DESC
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...