SQL
AخA
SELECT concat('[[', t.page_title, ']]'), concat('[[w:', t.page_title, ']]')
FROM afwiktionary_p.page t
JOIN afwiktionary_p.templatelinks tl
ON t.page_id = tl.tl_from AND tl.tl_namespace = 10 AND tl.tl_title = '--af--'
JOIN afwiki_p.page p
ON p.page_title = concat(ucase(substr(t.page_title, 1,1)), substr(t.page_title, 2))
JOIN afwiki_p.templatelinks pl
ON p.page_id = pl.tl_from AND pl.tl_namespace = 10 AND pl.tl_title IN ('Wikt', 'Wikt-inlyn')
WHERE p.page_namespace = 0
AND t.page_namespace = 0
AND p.page_is_redirect = 0
AND t.page_is_redirect = 0
;
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.