Module:ValidTypes

local p = {}

valid = {} valid["Alien"]        = "empty" valid["Construct"]    = "Celestial~Doll~Familiar~Homunculus~Machine~Object~Organic~Program" valid["Divine"]       = "Angel~Demi Goddess~Deity" valid["Grimoire"]     = "empty" valid["Heroic Spirit"] = "Servant" valid["Magical"]      = "Magical Girl~Witch~Wizard" valid["Mythological"] = "Dragon~Dwarf~Elf~Fairy~Halfling~Kitsune~Medusa~Oni~Shikigami~Spirit~Youkai" valid["Scientific"]   = "Drug~Genetic" valid["Natural"]      = "empty" valid["Transcendent"] = "empty" valid["Undead"]       = "Ghost~Vampire~Zombie" valid["Unknown"]      = "empty"

function strSplit(str,sep) if sep == nil then sep = "%s" end local res = {} for i in string.gmatch(str,"([^"..sep.."]+)") do       table.insert(res,i) end return res end

function p.parse for key, value in next, valid do      mw.logObject(key .. value) end

end return p