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 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 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') -- 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 page_title asc limit 1; -- 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...