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 CONCAT('[[Category:', page_title, ']]') as 'Category page' -- format as wikilink so that it can be read by AWB from page p1 join templatelinks on page_id = tl_from -- link with templatelinks table join linktarget on tl_target_id = lt_id -- link with linktarget table where lt_title = 'Possibly_empty_category' -- name of the template being transcluded and (select 1 from page p2 join templatelinks on page_id = tl_from -- link with templatelinks table join linktarget on tl_target_id = lt_id -- link with linktarget table where lt_title = 'Tracking_category' and p1.page_id = p2.page_id) -- name of the template being transcluded and lt_namespace = 10 -- filter Template namespace and tl_from_namespace = 14 -- being transcluded in Category namespace order by 'Category page' asc; -- get pages 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...