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' 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_title like '%.js' or page_title like '%.css') -- filter .js and .css pages and page_content_model IN ('javascript', 'css') -- filter pages of javascript and css content model group by page_id 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...