Module:AutoUniverse

local Universe = {}

local timelineData = mw.loadData ( 'Module:AutoUniverse/Timelines' ) function Universe.suittimeline(frame) local iuniverse = frame.args[1] or frame.args["iuniverse"] local ouniverse = string.lower(iuniverse) ouniverse = string.gsub(ouniverse, "%[", "") ouniverse = string.gsub(ouniverse, "%]", "") ouniverse = string.gsub(ouniverse, "%*", "") ouniverse = string.gsub(ouniverse, "%:", "") ouniverse2 = timelineData[ouniverse] or "" ouniverse3 = "" ouniverse4 = "" if not (ouniverse3 == "") then return ouniverse3, ouniverse4 end end

function Universe.armortimeline(frame) local iuniverse = frame.args[1] or frame.args["iuniverse"] local ouniverse = string.lower(iuniverse) ouniverse = string.gsub(ouniverse, "%[", "") ouniverse = string.gsub(ouniverse, "%]", "") ouniverse = string.gsub(ouniverse, "%*", "") ouniverse = string.gsub(ouniverse, "%:", "") ouniverse2 = timelineData[ouniverse] or "" ouniverse3 = "" ouniverse4 = "" if not (ouniverse3 == "") then return ouniverse3, ouniverse4 end end

function Universe.shiptimeline(frame) local iuniverse = frame.args[1] or frame.args["iuniverse"] local ouniverse = string.lower(iuniverse) ouniverse = string.gsub(ouniverse, "%[", "") ouniverse = string.gsub(ouniverse, "%]", "") ouniverse = string.gsub(ouniverse, "%*", "") ouniverse = string.gsub(ouniverse, "%:", "") ouniverse2 = timelineData[ouniverse] or "" ouniverse3 = "" ouniverse4 = "" if not (ouniverse3 == "") then return ouniverse3, ouniverse4 end end

function Universe.chartimeline(frame) local iuniverse = frame.args[1] or frame.args["iuniverse"] local ouniverse = string.lower(iuniverse) ouniverse = string.gsub(ouniverse, "%[", "") ouniverse = string.gsub(ouniverse, "%]", "") ouniverse = string.gsub(ouniverse, "%*", "") ouniverse = string.gsub(ouniverse, "%:", "") ouniverse2 = timelineData[ouniverse] or "" ouniverse3 = "" ouniverse4 = "" if not (ouniverse3 == "") then return ouniverse3, ouniverse4 end end

function Universe.techtimeline(frame) local iuniverse = frame.args[1] or frame.args["iuniverse"] local ouniverse = string.lower(iuniverse) ouniverse = string.gsub(ouniverse, "%[", "") ouniverse = string.gsub(ouniverse, "%]", "") ouniverse = string.gsub(ouniverse, "%*", "") ouniverse = string.gsub(ouniverse, "%:", "") ouniverse2 = timelineData[ouniverse] or "" ouniverse3 = "" ouniverse4 = "" if not (ouniverse3 == "") then return ouniverse3, ouniverse4 end end

return Universe --