Module:Missing characters

--local scripts = mw.loadData("Module:Missing characters/data") local scripts = { russian = "Cyrillic" }

local p = {}

local function categorize(script) if script == nil then return "Problematic language" end cat = "Pages with missing " .. script .. " characters" if mw.title.new(cat, 'Category').exists == true then return cat else return "Problematic language" end end

function p.main(frame) local parent = frame:getParent local args = parent.args[1] and parent.args or frame.args script = scripts[mw.ustring.lower(args[1])] or args[1] or "Unknown" cat = categorize(script) tip = args[2] or args["texttip"] page_ns = (mw.title.getCurrentTitle.nsText == "Page") end

return p