Fork of Cascade-protected templates lacking full protection by Pppery
This query is marked as a draft This query has been published by Xiplus.

SQL

AخA
 
USE zhwiki_p;
select distinct
  CONCAT("Template:", tl_title)
from
  page_restrictions sres
  join templatelinks on tl_from = sres.pr_page
  join page spage on pr_page = spage.page_id
  join page dpage on dpage.page_namespace = tl_namespace
  and dpage.page_title = tl_title
where
  pr_cascade = 1
  and not exists (
    select
      1
    from
      page_restrictions dres
    where
      dres.pr_type = "edit"
      and dres.pr_level = "sysop"
      and dres.pr_page = dpage.page_id
  )
  and dpage.page_namespace = 10;
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...