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('* [[Portal:', replace(page_title, '_', ' '), ']]') as 'Portal Redirect' -- Format as wikilink, replace _ with space from redirect join page on page_id = rd_from where page_namespace = 100 -- filter portal namespace and page_is_redirect = 1 -- filter redirects and rd_namespace = 0 -- filter redirects to mainspace order by page_title asc; -- arrange in ascending 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...