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
Pppery
.
Toggle Highlighting
SQL
select distinct concat("* [[Template:", replace(lt_title,"_"," "), "]]") from page_restrictions sres join templatelinks on tl_from = sres.pr_page join linktarget on lt_id=tl_target_id join page spage on pr_page = spage.page_id join page dpage on dpage.page_namespace = lt_namespace and dpage.page_title = lt_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_title not like "POTD_protected%" and dpage.page_title not like "Selected_anniv%" and dpage.page_title not like "Today's_featured_article%" -- and spage.page_title not like "%Main_Page%";
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...