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
Jarekt
.
Find images to be added to [[Category:Media missing infobox template]]
Toggle Highlighting
SQL
/* Commons files without an infobox and not in "Media_missing_infobox_template" Category */ use commonswiki_p; select /* SLOW_OK */ concat("File:",page_title) from page where page_namespace=6 and -- files only page_is_redirect=0 and -- no redirects page_title not like "%/%" and -- skip rare image subpages not exists ( -- file does not transclude "Infobox_template_tag" template select * from templatelinks where tl_from = page_id and tl_namespace=10 and tl_title ="Infobox_template_tag" -- all official infoboxes use empty "Infobox_template_tag" template limit 1 ) and not exists ( -- file not already in "Media_missing_infobox_template" or subcategories select * from categorylinks where cl_from=page_id and cl_to in ("Media_missing_infobox_template", "Artworks_missing_infobox_template", "Items_with_OTRS_permission_missing_infobox_template") limit 1 )
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...