Module:User:Wyang/desired

local export = {} local data = mw.loadData("Module:User:Wyang/desired/data")

function export.catch_em_all2 result = {} i, j = 0, 4586 while i < 200 do		while not data[j] do			j = j + 1 end local readings = data[j] if not mw.title.new(readings[1]).exists then table.insert(result, "[" .. j .. "] = { \"" .. readings[1] .. "\", \"" .. readings[2] .. "\", " .. readings[3] .. " },") i = i + 1 end j = j + 1 end return " " .. table.concat(result, "\n") .. " " end function export.catch_em_all result = { "List of Chinese entries to add, sorted by importance. Showing the first 300 uncreated words.\n\n==List==\n (There are errors.) \n \n{| class=\"wikitable sortable\" style=\"text-align:center; font-size: 120%\"\n|-\n!Word!!Readings!!Count" } i, j = 0, 1 while i < 200 do		while not data[j] do			j = j + 1 end local readings = data[j] if not mw.title.new(readings[1]):getContent then table.insert(result, "\n|-\n|style=\"background-color:#cfe8f7\"|" .. readings[1] ..				" \n|style=\"background-color:#FFFDD0\"|" .. mw.ustring.gsub(mw.ustring.gsub(readings[2], "([^|]+):([^|]+)", "%1: %2"), "|", " ") .. "\n|" .. readings[3]) i = i + 1 end j = j + 1 end return table.concat(result) .. "\n|}\n " end

return export