Module:Card

local p = {}

-- when generating the categories, Wikia will auto -- category this page if it finds an exact string -- that looks like a category. for that reason, I -- have used a function to prevent the Wikia -- string parser from finding it. local function newCat(catName) return  .. 'Category:' .. catName ..  end

-- -- Determine if the stats are missing -- function p.CheckMissingStats(frame) if not frame or not frame.args then return '' end local args = frame.args -- force text to lowercase to ensure easier comparisons local allStats = '' for key,value in pairs(args) do       if value ~= nil then allStats = allStats .. string.lower(tostring(value)) end end -- if the proc is empty or not a string just return if allStats:find('%?') then return newcat('Missing Stat Calculation') end return '' end

return p