SQL
AخA
USE cswiki_p;
SELECT page_title, IF(tl_title IS NULL, 0, 1) AS has_template FROM page
LEFT JOIN pagelinks ON page_id = pl_from AND pl_namespace = 0
LEFT JOIN templatelinks ON page_id = tl_from AND tl_namespace = 10 AND tl_title = "Wikifikovat"
WHERE page_namespace = 0 AND page_is_redirect = 0
AND pl_title IS NULL;
By running queries you agree to the Cloud Services Terms of Use and you irrevocably agree to release your SQL under CC0 License.
All SQL code is licensed under CC0 License.