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
.
templates that: 1) transclude "License_template_tag" 2) does not transclude any templates in "Primary_license_tags_(flat_list)" category 3) are not in "Primary_license_tags_(flat_list)" or "Style_formatting_templates" categories
Toggle Highlighting
SQL
USE commonswiki_p; SELECT /* SLOW_OK */ concat("Template:",page_title), t1.tl_title, t2.tl_title FROM page INNER JOIN templatelinks as t1 ON t1.tl_from = page_id INNER JOIN templatelinks as t2 ON t2.tl_from = page_id WHERE t1.tl_title in ("Autotranslate","Fallback") and t2.tl_title in ('PD-Layout", "GNU-Layout", "CC-Layout", "", "Copyrighted-Layout", "Copyright_by_Wikimedia-Layout", "Other_License-Layout License') and page_namespace = 10 AND -- templates only NOT page_title LIKE "%/%" AND -- no sub-pages AND NOT exists ( SELECT * FROM templatelinks WHERE tl_from=page_id AND tl_title IN ("Infobox template tag", "Information", "Self", "PermissionOTRS" ) 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...