Query Run
USE hiwiki_p; SELECT CONCAT("# [[:File:", img_name, "]]") AS file FROM... 4 years ago