Benutztes SQL

select concat('# [[WP:',replace(page_title,'_',' '),']]') as link
from page
where char_length(page_title) < 5
and page_namespace = 4
and not exists (select 1 from categorylinks where cl_from = page_id and cl_to="Wikipedia:Abkürzungen")
and page_is_redirect = 1
order by page_title asc;

Je einmal mit redirect=0 und redirect=1