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
JJMC89
.
Project namespace redirects to main namespace with some common acceptable ones excluded
Toggle Highlighting
SQL
select concat('{{-r|WP:',p.page_title,'}}') `Redirect`, concat('[[:',rd.rd_title,']]') `Target` from redirect rd left join page p on rd.rd_from = p.page_id where rd.rd_namespace = 0 and p.page_namespace = 4 and p.page_title not rlike '^(?:[A-Z]+$|MOS:|WikiProject)' and p.page_title not rlike '(?i)^(?:Article_Incubator|Articles_for_creation|Requested_articles|School_and_university_projects|United_States_Education_Program|WikiAfrica|WikiTown)/' and p.page_title not like '%_topics' and rd.rd_title not in ('Main_Page', 'UseModWiki') and rd.rd_title not rlike '(?:MediaWiki|Wikimedia|Wikipedia)' and rd.rd_title not like 'Project_%' ;
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...