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
ಮಲ್ನಾಡಾಚ್ ಕೊಂಕ್ಣೊ
.
Toggle Highlighting
SQL
select ROW_NUMBER() OVER(order by page_title) num, -- get row number CONCAT('[[User:', replace(page_title, '_', ' '), ']]') as 'Page title', -- Format as wikilink, replace _ with space pr_level as 'Protection level', pr_type as 'Type', page_content_model as 'Content model' from page join page_restrictions on page_id = pr_page -- link page_restrictions and page table where page_namespace = 2 -- filter User namespace and page_content_model in ('javascript', 'css', 'json') -- filter pages of javascript, css and json content model group by page_id -- remove duplicates that are both edit and move protected order by pr_level asc, page_title asc; -- arrange by protection level and title in asceding order
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...