Wikipedie:Údržbové seznamy/Nepropojené články vzniklé překladem/postup

Tento seznam je možné aktualizovat výsledkem následujícího SQL dotazu:

use cswiki_p;
select page_namespace, page_title from page where page_id in (select cl_from from categorylinks where cl_to like 'Monitoring:Články_přeložené_z_%wiki' and not exists (select * from langlinks where ll_from = cl_from and ll_lang like substring_index(substring_index(cl_to, '_', -1), 'wiki', 1))) and page_namespace like 0 order by page_id desc;

Ten lze provést např. vzdáleně pomocí Quarry, PAWS nebo nástroje na Toolforge, lokálně pomocí Dumpu a Bashe, např. takto:

$ echo "${SQLDOTAZ}" | mysql --defaults-file=replica.my.cnf -h cswiki.labsdb cswiki_p | tail -n+2 | awk '{ gsub(/_/, " ", $1); print "* [["$1"]]" }'

nebo třeba využitím Pywikibota, např. takto:

$ python3 pwb.py listpages -put:"Wikipedie:Údržbové seznamy/Nepropojené články vzniklé překladem/seznam" -overwrite -format:"# [[{page.loc_title}]]" -summary:"Robot: aktualizace" -mysqlquery:"select page_namespace, page_title from page where page_id in (select cl_from from categorylinks where cl_to like 'Monitoring:Články_přeložené_z_%wiki' and not exists (select * from langlinks where ll_from = cl_from and ll_lang like substring_index(substring_index(cl_to, '_', -1), 'wiki', 1))) and page_namespace like 0 order by page_id desc;"