SQL
x
USE fawiki_p;
SELECT concat('* [[:رده:',REPLACE(page_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(page_title,'_',' '),'بر پایه کارهای','اقتباس شده از آثار'),']]')
#SELECT concat('* [[:رده:',REPLACE(page_title,'_',' '),']] > [[:رده:',REPLACE(REPLACE(page_title,'_',' '),'بر پایه آثار','اقتباس شده از آثار'),']]')
FROM page
WHERE page_namespace = 14
AND page_is_redirect = 0
AND page_title NOT IN (
SELECT better.page_title
FROM page AS better JOIN templatelinks ON better.page_id = tl_from
WHERE better.page_namespace = 14
AND better.page_is_redirect = 0
AND tl_title LIKE '%بهتر%'
)
AND page_title LIKE "%بر_پایه_کارهای%"
#AND page_title LIKE "%بر_پایه_آثار%"
#LIMIT 3;
ORDER BY page_title;
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.