SQL
AخA
USE itwiki_p;
SELECT CONCAT('# [[', page_title, ']]')
FROM page
WHERE page_namespace = 0
AND page_is_redirect = 0
AND page_id IN (SELECT tl_from
FROM templatelinks
WHERE tl_namespace = 10
AND tl_title IN ('O'))
AND page_id NOT IN
(SELECT ll_from
FROM langlinks)
AND page_id IN
(SELECT cl_from
FROM categorylinks
WHERE cl_to
REGEXP 'Pagine_orfane_-_settembre_2016');
/*REGEXP 'Pagine_orfane_-_(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)_2016');*/
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.