Module:Online

--

local p = {}

local lus = { ["base"] = " ", ["imperial city"] = " ", ["orsinium"] = " ", ["thieves guild"] = " ", ["dark brotherhood"] = " ", ["eso morrowind"] = " ", ["clockwork city"] = " ", ["summerset"] = " ", ["murkmire"] = " ", ["elsweyr"] = " ", }

function p.character(frame) local result = '' for attr in mw.text.gsplit(string.lower(frame.args[1]), ',') do		if lus[attr] then -- skip invalid values result = result .. lus[attr] .. ' '		end end return string.sub(result, 1, -8) -- remove last whitespace end

local luk = { ["base"] = " ", ["imperial city"] = " ", ["orsinium"] = " ", ["thieves guild"] = " ", ["dark brotherhood"] = " ", ["eso morrowind"] = " ", ["clockwork city"] = " ", ["summerset"] = " ", ["murkmire"] = " ", ["elsweyr"] = " ", }

function p.creature(frame) local result = '' for typ in mw.text.gsplit(string.lower(frame.args[1]), ',') do		if luk[typ] then -- skip invalid values result = result .. luk[typ] .. ' '		end end return string.sub(result, 1, -8) -- remove last whitespace end

return p

--