Documentation for this module may be created at Module:GetUniverse/doc
local p = {}
local GetUniverseData = mw.loadData( 'Module:GetUniverse/data' )
function p.GetUniverse( frame )
local key = (frame.args[1] or '')
if key == '' then -- input was blank or not defined.
return -- return nothing.
end
local universe = GetUniverseData[key]
if not universe then -- key not in data, add tracking cat.
return key .. '[[Category:Needs valid universe]]'
end
return universe -- valid universe, don't add tracking cat.
end
return p